Skip to content

Commit

Permalink
Remove unused 'intTupleComparator' from Tuple tests (#2805)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit authored Aug 24, 2024
1 parent 7625eb1 commit 5ba70a2
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions generator/Generator.sc
Original file line number Diff line number Diff line change
Expand Up @@ -3726,8 +3726,6 @@ def generateTestClasses(): Unit = {
$assertThat(actual).isEqualTo(expected);
}

private $comparator<Tuple$i$intGenerics> intTupleComparator = Tuple$i.comparator(${(1 to i).gen($j => s"Integer::compare")(", ")});

private Tuple$i$generics createTuple() {
return ${if (i == 0) "Tuple0.instance()" else s"new Tuple$i<>($nullArgs)"};
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple0Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple0> intTupleComparator = Tuple0.comparator();

private Tuple0 createTuple() {
return Tuple0.instance();
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple1Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple1<Integer>> intTupleComparator = Tuple1.comparator(Integer::compare);

private Tuple1<Object> createTuple() {
return new Tuple1<>(null);
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple2Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple2<Integer, Integer>> intTupleComparator = Tuple2.comparator(Integer::compare, Integer::compare);

private Tuple2<Object, Object> createTuple() {
return new Tuple2<>(null, null);
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple3Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple3<Integer, Integer, Integer>> intTupleComparator = Tuple3.comparator(Integer::compare, Integer::compare, Integer::compare);

private Tuple3<Object, Object, Object> createTuple() {
return new Tuple3<>(null, null, null);
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple4Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple4<Integer, Integer, Integer, Integer>> intTupleComparator = Tuple4.comparator(Integer::compare, Integer::compare, Integer::compare, Integer::compare);

private Tuple4<Object, Object, Object, Object> createTuple() {
return new Tuple4<>(null, null, null, null);
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple5Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple5<Integer, Integer, Integer, Integer, Integer>> intTupleComparator = Tuple5.comparator(Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare);

private Tuple5<Object, Object, Object, Object, Object> createTuple() {
return new Tuple5<>(null, null, null, null, null);
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple6Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple6<Integer, Integer, Integer, Integer, Integer, Integer>> intTupleComparator = Tuple6.comparator(Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare);

private Tuple6<Object, Object, Object, Object, Object, Object> createTuple() {
return new Tuple6<>(null, null, null, null, null, null);
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple7Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple7<Integer, Integer, Integer, Integer, Integer, Integer, Integer>> intTupleComparator = Tuple7.comparator(Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare);

private Tuple7<Object, Object, Object, Object, Object, Object, Object> createTuple() {
return new Tuple7<>(null, null, null, null, null, null, null);
}
Expand Down
2 changes: 0 additions & 2 deletions src-gen/test/java/io/vavr/Tuple8Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,6 @@ public void shouldImplementToString() {
assertThat(actual).isEqualTo(expected);
}

private Comparator<Tuple8<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer>> intTupleComparator = Tuple8.comparator(Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare, Integer::compare);

private Tuple8<Object, Object, Object, Object, Object, Object, Object, Object> createTuple() {
return new Tuple8<>(null, null, null, null, null, null, null, null);
}
Expand Down

0 comments on commit 5ba70a2

Please sign in to comment.