Skip to content

Commit 4d56302

Browse files
committed
Remove unused text param in KtLintCompatAdapter
1 parent 1c7dd53 commit 4d56302

File tree

6 files changed

+1
-7
lines changed

6 files changed

+1
-7
lines changed

lib/src/compatKtLint0Dot48Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot48Dot0Adapter.java

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public Unit invoke(LintError lint, Boolean corrected) {
7474

7575
@Override
7676
public String format(
77-
String text,
7877
Path path,
7978
Path editorConfigPath,
8079
Map<String, Object> editorConfigOverrideMap) {

lib/src/compatKtLint0Dot49Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot49Dot0Adapter.java

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ public Unit invoke(LintError lint, Boolean corrected) {
120120

121121
@Override
122122
public String format(
123-
String text,
124123
Path path,
125124
Path editorConfigPath,
126125
Map<String, Object> editorConfigOverrideMap) {

lib/src/compatKtLint0Dot50Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat0Dot50Dot0Adapter.java

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public Unit invoke(LintError lint, Boolean corrected) {
8383

8484
@Override
8585
public String format(
86-
String text,
8786
Path path,
8887
Path editorConfigPath,
8988
Map<String, Object> editorConfigOverrideMap) {

lib/src/compatKtLint1Dot0Dot0/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompat1Dot0Dot0Adapter.java

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public Unit invoke(LintError lint, Boolean corrected) {
8383

8484
@Override
8585
public String format(
86-
String text,
8786
Path path,
8887
Path editorConfigPath,
8988
Map<String, Object> editorConfigOverrideMap) {

lib/src/compatKtLintApi/java/com/diffplug/spotless/glue/ktlint/compat/KtLintCompatAdapter.java

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
public interface KtLintCompatAdapter {
2222

2323
String format(
24-
String text,
2524
Path path,
2625
Path editorConfigPath,
2726
Map<String, Object> editorConfigOverrideMap);

lib/src/ktlint/java/com/diffplug/spotless/glue/ktlint/KtlintFormatterFunc.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ public KtlintFormatterFunc(String version, FileSignature editorConfigPath,
6060

6161
@Override
6262
public String applyWithFile(String unix, File file) {
63-
6463
Path absoluteEditorConfigPath = null;
6564
if (editorConfigPath != null) {
6665
absoluteEditorConfigPath = editorConfigPath.getOnlyFile().toPath();
6766
}
68-
return adapter.format(unix, file.toPath(), absoluteEditorConfigPath, editorConfigOverrideMap);
67+
return adapter.format(file.toPath(), absoluteEditorConfigPath, editorConfigOverrideMap);
6968
}
7069
}

0 commit comments

Comments
 (0)