diff --git a/java/lc-esp-eo/src/main/java/lc/esp/eo/EO.java b/java/lc-esp-eo/src/main/java/lc/esp/eo/EO.java index 598f007b8934753274cda87ed835bdee9b10ae79..10a078409a3a03e4ecb5ece49ab2fb79d4492247 100644 --- a/java/lc-esp-eo/src/main/java/lc/esp/eo/EO.java +++ b/java/lc-esp-eo/src/main/java/lc/esp/eo/EO.java @@ -60,7 +60,6 @@ public class EO implements Serializable, Cloneable { private static final String WEAK_META_PREFIX = "*"; private static final String STRONG_META_PREFIX = "#"; private static final String META_LABEL_KEY = "label"; - private static String pathPattern = Pattern.quote("/"); private String typeName; private final HashMap data = new HashMap<>(); private HashMap> meta; @@ -411,29 +410,6 @@ public class EO implements Serializable, Cloneable { // Be a wolf - public void recurse(EOLoop dst, final String path) { - recurse(dst, path.split(pathPattern), 0); - } - - private void recurse(EOLoop dst, final String[] path, final int index) { - final Object value = data.get(path[index]); - - logger.debug("recurse(). [idx: {}] [path: {}] [value: {}]", index, path, value); - - if (!(value instanceof EOLoop)) return; - - int next = index + 1; - - if (next == path.length) { - dst.addAll((EOLoop) value); - return; - } - - for (EO eo : (EOLoop) value) { - eo.recurse(dst, path, next); - } - } - /** * Returns the value as a loop. If the value is null, a new loop will be created. If a value is set, * but is not a loop, a {@link ClassCastException} will be thrown.