changeset 1811:55d89a183c82

remove line_diff from luan
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 15 May 2024 18:02:28 -0600
parents 3c43b07e12b7
children f44dcb3fedf7
files src/luan/modules/String.luan src/luan/modules/StringLuan.java
diffstat 2 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
diff -r 3c43b07e12b7 -r 55d89a183c82 src/luan/modules/String.luan
--- a/src/luan/modules/String.luan	Sun May 12 22:00:42 2024 -0600
+++ b/src/luan/modules/String.luan	Wed May 15 18:02:28 2024 -0600
@@ -12,7 +12,6 @@
 String.ends_with = StringLuan.ends_with
 String.find = StringLuan.find
 String.format = StringLuan.format
-String.line_diff = StringLuan.line_diff
 String.lower = StringLuan.lower
 String.regex = Boot.regex
 String.regex_quote = Pattern.quote
diff -r 3c43b07e12b7 -r 55d89a183c82 src/luan/modules/StringLuan.java
--- a/src/luan/modules/StringLuan.java	Sun May 12 22:00:42 2024 -0600
+++ b/src/luan/modules/StringLuan.java	Wed May 15 18:02:28 2024 -0600
@@ -158,13 +158,4 @@
 		return GoodUtils.replace(s,target,replacement);
 	}
 
-	public static String line_diff(String oldStr,String newStr) {
-		List<LineDiff.Diff> diffs = LineDiff.diff(oldStr,newStr);
-		StringBuilder sb = new StringBuilder();
-		for( LineDiff.Diff diff : diffs ) {
-			sb.append(diff.operation).append(' ').append(diff.lineOld).append(' ').append(diff.lineNew).append(" - ").append(diff.text).append('\n');
-		}
-		return sb.toString();
-	}
-
 }