diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 11:08:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:16 +0200 |
commit | 8d6cf7a147acde4e4a4f7600af25ed614b07f90d (patch) | |
tree | ae8f52bd74fb33459fe69eadbdb57271df86fd94 /scripting/java/org | |
parent | 60fad3fabb26a50ea238bed2f046670c6e5678f7 (diff) |
java: remove dead methods
Change-Id: I9f2e705fd603a7c8832c0f0772bee9f395380a0d
Diffstat (limited to 'scripting/java/org')
-rw-r--r-- | scripting/java/org/openoffice/idesupport/xml/Manifest.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/scripting/java/org/openoffice/idesupport/xml/Manifest.java b/scripting/java/org/openoffice/idesupport/xml/Manifest.java index a349ff51d60f..9bd6d2576798 100644 --- a/scripting/java/org/openoffice/idesupport/xml/Manifest.java +++ b/scripting/java/org/openoffice/idesupport/xml/Manifest.java @@ -120,33 +120,6 @@ public class Manifest { return result; } - private InputStream replaceNewlines(byte[] bytes) throws IOException { - InputStream result; - ByteArrayOutputStream out; - BufferedReader reader; - - reader = new BufferedReader(new InputStreamReader( - new ByteArrayInputStream(bytes))); - out = new ByteArrayOutputStream(); - - int previous = reader.read(); - out.write(previous); - int current; - - while ((current = reader.read()) != -1) { - if (((char)current == '\n' || (char)current == ' ') && - (char)previous == '\n') - continue; - else { - out.write(current); - previous = current; - } - } - result = new ByteArrayInputStream(out.toByteArray()); - - return result; - } - public void write(OutputStream out) throws IOException { XMLParserFactory.getParser().write(document, out); } |