From 25676332fb3cf0741c03e92a53cc141dbb045a9f Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Wed, 24 Apr 2013 10:32:51 -0500 Subject: [PATCH] Remove unused and undocumented method DFA.getATNStatesAlongPath --- .../src/org/antlr/v4/runtime/dfa/DFA.java | 23 ------------------- 1 file changed, 23 deletions(-) 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); }