From 8839d6b1852d473c3d440354cff55e888b8ea30b Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Wed, 2 Jan 2013 06:39:03 -0600 Subject: [PATCH] Remove unused/commented methods --- .../v4/runtime/atn/PredictionContext.java | 28 ------------------- .../src/org/antlr/v4/runtime/dfa/DFA.java | 25 ----------------- 2 files changed, 53 deletions(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/PredictionContext.java b/runtime/Java/src/org/antlr/v4/runtime/atn/PredictionContext.java index e8968473b..0ddb5178c 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/atn/PredictionContext.java +++ b/runtime/Java/src/org/antlr/v4/runtime/atn/PredictionContext.java @@ -120,34 +120,6 @@ public abstract class PredictionContext implements Iterable getPathToState(DFAState finalState, TokenStream input, int start, int stop) { -// if ( s0==null ) return null; -// List states = new ArrayList(); -// states.add(s0); -// DFAState p = s0; -// int i = start; -// Token t = input.get(i); -// while ( p != finalState && i= p.edges.length || la < -1 || p.edges[la+1] == null ) { -// return states; -// } -// DFAState target = p.edges[la+1]; -// if ( target == ATNSimulator.ERROR ) { -// return states; -// } -// states.add(target); -// p = target; -// i++; -// t = input.get(i); -// } -// return states; -// } - public List> getATNStatesAlongPath(ParserATNSimulator atn, List dfaStates, TokenStream input, int start, int stop)