Browse Source

make Token.length immutable

Jan Wittler 4 years ago
parent
commit
91cc6fbb3b

+ 0 - 8
jplag.frontend-utils/src/main/java/de/jplag/Token.java

@@ -94,14 +94,6 @@ public abstract class Token {
         this.column = column;
     }
 
-    /**
-     * Sets the length if the code sections represented by this token.
-     * @param length is the length in characters to set.
-     */
-    public void setLength(int length) {
-        this.length = length;
-    }
-
     /**
      * Sets the line index denoting in which line the code sections represented by this token starts.
      * @param line is the line index to set.

+ 0 - 5
jplag.frontend.chars/src/main/java/de/jplag/chars/CharToken.java

@@ -37,11 +37,6 @@ public class CharToken extends Token {
         // Do nothing!
     }
 
-    @Override
-    public void setLength(int length) {
-        // Do nothing!
-    }
-
     @Override
     protected String type2string() {
         if (character == null) {