From 2da307c04f6aea9b64d659e22468727e0a8824c4 Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Sat, 26 Mar 2016 14:55:42 +0100 Subject: [PATCH] ECS: clean unused comparators --- .../mode/java/pdex/SourceMapping.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/java/src/processing/mode/java/pdex/SourceMapping.java b/java/src/processing/mode/java/pdex/SourceMapping.java index 82443e427..a33b5e62d 100644 --- a/java/src/processing/mode/java/pdex/SourceMapping.java +++ b/java/src/processing/mode/java/pdex/SourceMapping.java @@ -29,27 +29,6 @@ public class SourceMapping { } }; - private static final Comparator INPUT_OFFSET_COMP_LEX = new Comparator() { - @Override - public int compare(Edit o1, Edit o2) { - int off = Integer.compare(o1.fromOffset, o2.fromOffset); - return (off != 0) - ? off - : Integer.compare(o1.fromLength, o2.fromLength); - } - }; - - private static final Comparator OUTPUT_OFFSET_COMP_LEX = new Comparator() { - @Override - public int compare(Edit o1, Edit o2) { - int off = Integer.compare(o1.toOffset, o2.toOffset); - return (off != 0) - ? off - : Integer.compare(o1.toLength, o2.toLength); - } - }; - - private boolean applied; private List edits = new ArrayList<>();