Skip to content

Commit

Permalink
Remove uneccessary filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
leibnitz27 committed Feb 20, 2020
1 parent 44b17d8 commit 35319aa
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ public static void rewrite(Op04StructuredStatement block) {
private void doRewrite(Op04StructuredStatement block) {
ExpressionRewriterTransformer et = new SearchPass(new SearchPassRewriter());
et.transform(block);
Set<LocalVariable> localsKeep = SetFactory.newSet();
for (Map.Entry<LocalVariable, Integer> entry : locals.entrySet()) {
if (entry.getValue() > 0) localsKeep.add(entry.getKey());
}
removeCandidates.removeAll(localsKeep);
removeCandidates.removeAll(locals.keySet());
//noinspection SuspiciousMethodCalls
removeCandidates.retainAll(definitions.keySet());
if (removeCandidates.isEmpty()) return;
Expand Down

0 comments on commit 35319aa

Please sign in to comment.