diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2012-03-23 00:30:46 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2012-03-23 00:30:46 +0100 |
commit | 9dd6e6cd297ae9c0d912ecfa07a148a29e6f4eee (patch) | |
tree | fa901526a945d6f5c78992feccb5f427d5b0550d /org.eclipse.jgit/src/org/eclipse/jgit/util | |
parent | 473139bbf6c8b5a5603d3f59ca968de5aeaa1887 (diff) | |
download | jgit-9dd6e6cd297ae9c0d912ecfa07a148a29e6f4eee.tar.gz jgit-9dd6e6cd297ae9c0d912ecfa07a148a29e6f4eee.zip |
Revert "Allow to write tests with CLI syntax"
This reverts commit bf845c126d53f07de103e03b68ddb7f24014cee5 since this
change needs to go through a formal IP review and Chris missed to file a
CQ for that.
Change-Id: I303515d78116f0591a2911dbfb9f857738f086a9
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java index 206760c29c..412bd04e67 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/IO.java @@ -54,8 +54,6 @@ import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.channels.ReadableByteChannel; import java.text.MessageFormat; -import java.util.ArrayList; -import java.util.List; import org.eclipse.jgit.internal.JGitText; @@ -307,42 +305,6 @@ public class IO { } } - /** - * Divides the given string into lines. - * - * @param s - * the string to read - * @return the string divided into lines - */ - public static List<String> readLines(final String s) { - List<String> l = new ArrayList<String>(); - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < s.length(); i++) { - char c = s.charAt(i); - if (c == '\n') { - l.add(sb.toString()); - sb.setLength(0); - continue; - } - if (c == '\r') { - if (i + 1 < s.length()) { - c = s.charAt(++i); - l.add(sb.toString()); - sb.setLength(0); - if (c != '\n') - sb.append(c); - continue; - } else { // EOF - l.add(sb.toString()); - break; - } - } - sb.append(c); - } - l.add(sb.toString()); - return l; - } - private IO() { // Don't create instances of a static only utility. } |