Skip to content

Commit d918129

Browse files
winteryoungronshapiro
authored andcommitted
Remove two unused parameters
See #195 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171382679
1 parent bd41f95 commit d918129

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

core/src/main/java/com/google/googlejavaformat/InputOutput.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ protected final void computeRanges(List<? extends Input.Tok> toks) {
8383
* Given an {@code InputOutput}, compute the map from tok indices to line ranges.
8484
*
8585
* @param put the {@code InputOutput}
86-
* @param kN the number of tokens
8786
* @return the map from {@link com.google.googlejavaformat.java.JavaInput.Tok} indices to line
8887
* ranges in this {@code put}
8988
*/
90-
public static Map<Integer, Range<Integer>> makeKToIJ(InputOutput put, int kN) {
89+
public static Map<Integer, Range<Integer>> makeKToIJ(InputOutput put) {
9190
Map<Integer, Range<Integer>> map = new HashMap<>();
9291
int ijN = put.getLineCount();
9392
for (int ij = 0; ij <= ijN; ij++) {

core/src/main/java/com/google/googlejavaformat/java/JavaOutput.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public CommentsHelper getCommentsHelper() {
208208
*/
209209
public ImmutableList<Replacement> getFormatReplacements(RangeSet<Integer> iRangeSet0) {
210210
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);
212212

213213
// Expand the token ranges to align with re-formattable boundaries.
214214
RangeSet<Integer> breakableRanges = TreeRangeSet.create();

0 commit comments

Comments
 (0)