Delete unused method SourceFile.fromReader
#codehealth
@@ -526,12 +526,6 @@ public final class SourceFile implements StaticSourceFile, Serializable {
return builder().withCharset(charset).buildFromInputStream(fileName, s);
}
- @GwtIncompatible("java.io.Reader")
- public static SourceFile fromReader(String fileName, Reader r)
- throws IOException {
- return builder().buildFromReader(fileName, r);
- }
-
@GwtIncompatible("java.io.Reader")
public static SourceFile fromProto(SourceFileProto protoSourceFile) {
SourceKind sourceKind = getSourceKindFromProto(protoSourceFile);
@@ -668,11 +662,6 @@ public final class SourceFile implements StaticSourceFile, Serializable {
public SourceFile buildFromInputStream(String fileName, InputStream s) throws IOException {
return buildFromCode(fileName, CharStreams.toString(new InputStreamReader(s, charset)));
}
-
- @GwtIncompatible("java.io.Reader")
- public SourceFile buildFromReader(String fileName, Reader r) throws IOException {
- return buildFromCode(fileName, CharStreams.toString(r));
- }
}
//////////////////////////////////////////////////////////////////////////////
