Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-12-02 19:30:14 +0000
committerLars Vogel2019-12-03 13:44:36 +0000
commit251dfd0050b6d96af2b016a6151d1e5f58045fa4 (patch)
treea7adcb86b1111b3f7b198626de8eac161901faf8
parent270d0a87582bec3aba18c7f67e81dcca87231424 (diff)
downloadeclipse.platform.text-251dfd0050b6d96af2b016a6151d1e5f58045fa4.tar.gz
eclipse.platform.text-251dfd0050b6d96af2b016a6151d1e5f58045fa4.tar.xz
eclipse.platform.text-251dfd0050b6d96af2b016a6151d1e5f58045fa4.zip
Deletes unused methods from FileTool in filebuffer tests
Change-Id: I29b21247d1216e04d01878ec523cea8556911ace Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java
index 2545e6cee..1b74d950b 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileTool.java
@@ -17,12 +17,10 @@ package org.eclipse.core.filebuffers.tests;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
-import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
-import java.io.Reader;
import java.io.Writer;
import java.net.URL;
import java.util.Enumeration;
@@ -168,29 +166,6 @@ public class FileTool {
return stateLocation.toFile();
}
- public static StringBuffer read(String fileName) throws IOException {
- return read(new FileReader(fileName));
- }
-
- public static StringBuffer read(Reader reader) throws IOException {
- StringBuffer s= new StringBuffer();
- try {
- char[] charBuffer= new char[8196];
- int chars= reader.read(charBuffer);
- while (chars != -1) {
- s.append(charBuffer, 0, chars);
- chars= reader.read(charBuffer);
- }
- } finally {
- try {
- reader.close();
- } catch (IOException e) {
- }
- }
- return s;
- }
-
-
public static void write(String fileName, String content) throws IOException {
try (Writer writer= new FileWriter(fileName)) {
writer.write(content);

Back to the top