1919import static org .antlr .codebuff .CollectFeatures .CAT_INDENT ;
2020import static org .antlr .codebuff .CollectFeatures .CAT_NO_ALIGNMENT ;
2121import static org .antlr .codebuff .CollectFeatures .FEATURES_ALIGN ;
22- import static org .antlr .codebuff .CollectFeatures .FEATURES_INDENT ;
2322import static org .antlr .codebuff .CollectFeatures .FEATURES_INJECT_NL ;
2423import static org .antlr .codebuff .CollectFeatures .FEATURES_INJECT_WS ;
2524import static org .antlr .codebuff .CollectFeatures .INDEX_FIRST_ON_LINE ;
@@ -49,7 +48,6 @@ public class Formatter {
4948
5049 protected CodekNNClassifier newlineClassifier ;
5150 protected CodekNNClassifier wsClassifier ;
52- protected CodekNNClassifier indentClassifier ;
5351 protected CodekNNClassifier alignClassifier ;
5452 protected int k ;
5553
@@ -71,7 +69,6 @@ public Formatter(Corpus corpus, InputDocument doc, int tabSize) {
7169 Tool .wipeLineAndPositionInfo (tokens );
7270 newlineClassifier = new CodekNNClassifier (corpus , FEATURES_INJECT_NL );
7371 wsClassifier = new CodekNNClassifier (corpus , FEATURES_INJECT_WS );
74- indentClassifier = new CodekNNClassifier (corpus , FEATURES_INDENT );
7572 alignClassifier = new CodekNNClassifier (corpus , FEATURES_ALIGN );
7673// k = (int)Math.sqrt(corpus.X.size());
7774 k = 11 ;
@@ -300,13 +297,10 @@ public TokenPositionAnalysis getTokenAnalysis(int[] features, int indexIntoRealT
300297 String alignAnalysis =alignPredictionString +"\n " +
301298 alignClassifier .getPredictionAnalysis (doc , k , features , corpus .align ,
302299 MAX_CONTEXT_DIFF_THRESHOLD );
303- String indentAnalysis =indentPredictionString +"\n " +
304- indentClassifier .getPredictionAnalysis (doc , k , features , corpus .indent ,
305- MAX_CONTEXT_DIFF_THRESHOLD );
306300 String wsAnalysis =wsPredictionString +"\n " +
307301 wsClassifier .getPredictionAnalysis (doc , k , features , corpus .injectWS ,
308302 MAX_CONTEXT_DIFF_THRESHOLD );
309- return new TokenPositionAnalysis (newlineAnalysis , alignAnalysis , indentAnalysis , wsAnalysis );
303+ return new TokenPositionAnalysis (newlineAnalysis , alignAnalysis , wsAnalysis );
310304 }
311305
312306 /** Do not join two words like "finaldouble" or numbers like "3double",
0 commit comments