diff src/luan/modules/StringLuan.java @ 1811:55d89a183c82 default tip

remove line_diff from luan
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 15 May 2024 18:02:28 -0600
parents 90187946d1a4
children
line wrap: on
line diff
--- 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();
-	}
-
 }