Skip to content

Commit

Permalink
Remove two unused parameters
Browse files Browse the repository at this point in the history
See #195

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171382679
  • Loading branch information
winteryoung authored and ronshapiro committed Oct 9, 2017
1 parent bd41f95 commit 45460ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ protected final void computeRanges(List<? extends Input.Tok> toks) {
* Given an {@code InputOutput}, compute the map from tok indices to line ranges.
*
* @param put the {@code InputOutput}
* @param kN the number of tokens
* @return the map from {@link com.google.googlejavaformat.java.JavaInput.Tok} indices to line
* ranges in this {@code put}
*/
public static Map<Integer, Range<Integer>> makeKToIJ(InputOutput put, int kN) {
public static Map<Integer, Range<Integer>> makeKToIJ(InputOutput put) {
Map<Integer, Range<Integer>> map = new HashMap<>();
int ijN = put.getLineCount();
for (int ij = 0; ij <= ijN; ij++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public CommentsHelper getCommentsHelper() {
*/
public ImmutableList<Replacement> getFormatReplacements(RangeSet<Integer> iRangeSet0) {
ImmutableList.Builder<Replacement> result = ImmutableList.builder();
Map<Integer, Range<Integer>> kToJ = JavaOutput.makeKToIJ(this, kN);
Map<Integer, Range<Integer>> kToJ = JavaOutput.makeKToIJ(this);

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

0 comments on commit 45460ce

Please sign in to comment.