diff --git a/runtime/Java/src/org/antlr/v4/runtime/dfa/DFA.java b/runtime/Java/src/org/antlr/v4/runtime/dfa/DFA.java index 2da700af4..694783a32 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/dfa/DFA.java +++ b/runtime/Java/src/org/antlr/v4/runtime/dfa/DFA.java @@ -91,29 +91,6 @@ public class DFA { return result; } - public List> getATNStatesAlongPath(ParserATNSimulator atn, - List dfaStates, - TokenStream input, int start, int stop) - { - List> atnStates = new ArrayList>(); - int i = start; - for (DFAState D : dfaStates) { - Set fullSet = D.configs.getStates(); - Set statesInvolved = new HashSet(); - for (ATNState astate : fullSet) { - Transition t = astate.transition(0); - ATNState target = atn.getReachableTarget(t, input.get(i).getType()); - if ( target!=null ) { - statesInvolved.add(astate); - } - } - System.out.println("statesInvolved upon "+input.get(i).getText()+"="+statesInvolved); - i++; - atnStates.add(statesInvolved); - } - return atnStates; - } - @Override public String toString() { return toString(null); }