Remove TextUtil.addLines

Change-Id: Ic0fdf4eedfcfe343447e3ef49d737be6a9b13665
diff --git a/ltk/org.eclipse.statet.ltk.core/src/org/eclipse/statet/ecommons/text/TextUtil.java b/ltk/org.eclipse.statet.ltk.core/src/org/eclipse/statet/ecommons/text/TextUtil.java
index bcecd86..c5ced11 100644
--- a/ltk/org.eclipse.statet.ltk.core/src/org/eclipse/statet/ecommons/text/TextUtil.java
+++ b/ltk/org.eclipse.statet.ltk.core/src/org/eclipse/statet/ecommons/text/TextUtil.java
@@ -117,50 +117,6 @@
 		}
 	}
 	
-	public static ArrayList<String> toLines(final String text) {
-		final ArrayList<String> lines= new ArrayList<>(2 + text.length() / 30);
-		TextUtil.addLines(text, lines);
-		return lines;
-	}
-	
-	/**
-	 * Adds text of lines of a string without its line delimiters to the list.
-	 * 
-	 * @param text the text
-	 * @param lines list the lines are added to
-	 */
-	public static void addLines(final String text, final List<String> lines) {
-		final int n= text.length();
-		int i= 0;
-		int lineStart= 0;
-		while (i < n) {
-			switch (text.charAt(i)) {
-			case '\r':
-				lines.add(text.substring(lineStart, i));
-				i++;
-				if (i < n && text.charAt(i) == '\n') {
-					i++;
-				}
-				lineStart= i;
-				continue;
-			case '\n':
-				lines.add(text.substring(lineStart, i));
-				i++;
-				if (i < n && text.charAt(i) == '\r') {
-					i++;
-				}
-				lineStart= i;
-				continue;
-			default:
-				i++;
-				continue;
-			}
-		}
-		if (lineStart < n) {
-			lines.add(text.substring(lineStart, n));
-		}
-	}
-	
 	/**
 	 * Adds text of lines of a document without its line delimiters to the list.
 	 *