Skip to content

Commit d5e8141

Browse files
committed
refactor: remove state cleanup in the diff parser
This is not necessary because the state is (and must be) only used for parsing one variation diff. Furthermore, if this would be needed, it would be buggy. In particular, this cleanup code is not executed in case an exception is thrown.
1 parent fc22f32 commit d5e8141

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/main/java/org/variantsync/diffdetective/variation/diff/parse/VariationDiffParser.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,6 @@ private VariationDiff<DiffLinesLabel> parse(
288288
);
289289
}
290290

291-
// Cleanup state
292-
beforeStack.clear();
293-
afterStack.clear();
294-
lastArtifact = null;
295-
296291
return new VariationDiff<>(root);
297292
}
298293

0 commit comments

Comments
 (0)