Skip to content

Commit fce6648

Browse files
committed
refactor: remove redundant function signature
A call like diff(s, d, myEqualizer) can be replaced with diff(s, d, MyersDiff(myEqualizer)) which is definitely more clear on the intent.
1 parent 4600887 commit fce6648

File tree

1 file changed

+0
-20
lines changed
  • src/commonMain/kotlin/io/github/petertrr/diffutils

1 file changed

+0
-20
lines changed

src/commonMain/kotlin/io/github/petertrr/diffutils/DiffUtils.kt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,6 @@ public fun diff(
6262
includeEqualParts = includeEqualParts,
6363
)
6464

65-
/**
66-
* Computes the difference between the source and target list of elements using the Myers algorithm.
67-
*
68-
* @param source The original elements
69-
* @param target The target elements
70-
* @param equalizer The equalizer to replace the default compare algorithm [Any.equals].
71-
* If `null`, the default equalizer of the default algorithm is used.
72-
* @return The patch describing the difference between the source and target sequences
73-
*/
74-
public fun <T> diff(
75-
source: List<T>,
76-
target: List<T>,
77-
equalizer: DiffEqualizer<T>,
78-
): Patch<T> =
79-
diff(
80-
source = source,
81-
target = target,
82-
algorithm = MyersDiff(equalizer),
83-
)
84-
8565
/**
8666
* Computes the difference between the original and target list of elements.
8767
*

0 commit comments

Comments
 (0)