Skip to content

Commit

Permalink
Remove redundant setting of context type
Browse files Browse the repository at this point in the history
TreeReference.anchor already does that while cloning the contextRef
  • Loading branch information
ggalmazor committed Mar 10, 2020
1 parent b302e57 commit 40ad6a3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ public TreeReference contextualize(TreeReference contextRef) {
}

TreeReference newRef = anchor(contextRef);
// unclear...
newRef.setContextType(contextRef.getContextType());

//apply multiplicities and fill in wildcards as necessary based on the context ref
for (int i = 0; i < contextRef.size() && i < newRef.size(); i++) {
Expand Down

0 comments on commit 40ad6a3

Please sign in to comment.