File tree 2 files changed +2
-3
lines changed
core/src/main/java/com/google/googlejavaformat
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,10 @@ protected final void computeRanges(List<? extends Input.Tok> toks) {
83
83
* Given an {@code InputOutput}, compute the map from tok indices to line ranges.
84
84
*
85
85
* @param put the {@code InputOutput}
86
- * @param kN the number of tokens
87
86
* @return the map from {@link com.google.googlejavaformat.java.JavaInput.Tok} indices to line
88
87
* ranges in this {@code put}
89
88
*/
90
- public static Map <Integer , Range <Integer >> makeKToIJ (InputOutput put , int kN ) {
89
+ public static Map <Integer , Range <Integer >> makeKToIJ (InputOutput put ) {
91
90
Map <Integer , Range <Integer >> map = new HashMap <>();
92
91
int ijN = put .getLineCount ();
93
92
for (int ij = 0 ; ij <= ijN ; ij ++) {
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ public CommentsHelper getCommentsHelper() {
208
208
*/
209
209
public ImmutableList <Replacement > getFormatReplacements (RangeSet <Integer > iRangeSet0 ) {
210
210
ImmutableList .Builder <Replacement > result = ImmutableList .builder ();
211
- Map <Integer , Range <Integer >> kToJ = JavaOutput .makeKToIJ (this , kN );
211
+ Map <Integer , Range <Integer >> kToJ = JavaOutput .makeKToIJ (this );
212
212
213
213
// Expand the token ranges to align with re-formattable boundaries.
214
214
RangeSet <Integer > breakableRanges = TreeRangeSet .create ();
You can’t perform that action at this time.
0 commit comments