diff options
Diffstat (limited to 'main/utils')
| -rw-r--r-- | main/utils/Counter.java | 42 | ||||
| -rw-r--r-- | main/utils/Utilities.java | 17 |
2 files changed, 0 insertions, 59 deletions
diff --git a/main/utils/Counter.java b/main/utils/Counter.java deleted file mode 100644 index 9783adf..0000000 --- a/main/utils/Counter.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.jantuomi.interpreter.main.utils; - -/** - * Created by jan on 13.6.2016. - */ -public class Counter { - private int value = 0; - - public int getRecursionDepth() { - return recursionDepth; - } - - private int recursionDepth = 0; - - public int advance() { - return ++value; - } - - public int deeper() { - return ++recursionDepth; - } - - public int shallower() { - return --recursionDepth; - } - - public int getValue() { - return value; - } - - public void assign(Counter other) { - value = other.value; - recursionDepth = other.recursionDepth; - } - - public Counter clone() { - Counter c = new Counter(); - c.value = value; - c.recursionDepth = recursionDepth; - return c; - } -} diff --git a/main/utils/Utilities.java b/main/utils/Utilities.java deleted file mode 100644 index 396248f..0000000 --- a/main/utils/Utilities.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.jantuomi.interpreter.main.utils; - -import java.nio.file.Path; -import java.nio.file.Paths; - -/** - * Created by jan on 10.6.2016. - */ -public class Utilities { - private Utilities() {} - - public static String getBasePath() { - Path currentRelativePath = Paths.get(""); - String s = currentRelativePath.toAbsolutePath().toString(); - return s; - } -} |
