Skip to content

Commit abe30b8

Browse files
committed
remove obsolete fix code
PR Feedback: this version is no longer supported anyway
1 parent ab982d2 commit abe30b8

File tree

4 files changed

+2
-125
lines changed

4 files changed

+2
-125
lines changed

lib/src/googleJavaFormat/java/com/diffplug/spotless/glue/java/GoogleJavaFormatFormatterFunc.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*/
1616
package com.diffplug.spotless.glue.java;
1717

18-
import static com.diffplug.spotless.glue.java.GoogleJavaFormatUtils.fixWindowsBug;
19-
2018
import java.util.Objects;
2119

2220
import javax.annotation.Nonnull;
@@ -57,8 +55,7 @@ public String apply(@Nonnull String input) throws Exception {
5755
String formatted = formatter.formatSource(input);
5856
String removedUnused = RemoveUnusedImports.removeUnusedImports(formatted);
5957
String sortedImports = ImportOrderer.reorderImports(removedUnused, formatterStyle);
60-
String reflowedLongStrings = reflowLongStrings(sortedImports);
61-
return fixWindowsBug(reflowedLongStrings, version);
58+
return reflowLongStrings(sortedImports);
6259
}
6360

6461
private String reflowLongStrings(String input) throws FormatterException {

lib/src/googleJavaFormat/java/com/diffplug/spotless/glue/java/GoogleJavaFormatRemoveUnusedImporterFormatterFunc.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*/
1616
package com.diffplug.spotless.glue.java;
1717

18-
import static com.diffplug.spotless.glue.java.GoogleJavaFormatUtils.fixWindowsBug;
19-
2018
import java.util.Objects;
2119

2220
import javax.annotation.Nonnull;
@@ -37,7 +35,6 @@ public GoogleJavaFormatRemoveUnusedImporterFormatterFunc(@Nonnull String version
3735
@Override
3836
@Nonnull
3937
public String apply(@Nonnull String input) throws Exception {
40-
String removedUnused = RemoveUnusedImports.removeUnusedImports(input);
41-
return fixWindowsBug(removedUnused, version);
38+
return RemoveUnusedImports.removeUnusedImports(input);
4239
}
4340
}

lib/src/googleJavaFormat/java/com/diffplug/spotless/glue/java/GoogleJavaFormatUtils.java

Lines changed: 0 additions & 54 deletions
This file was deleted.

lib/src/testGoogleJavaFormat/java/com/diffplug/spotless/glue/java/GoogleJavaFormatUtilsTest.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)