summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-09-24 19:03:10 -0700
committerChris Aniszczyk <caniszczyk@gmail.com>2010-10-11 17:05:18 -0500
commite82cadc0dcece55ff8bad1a890bf9e3f8b802cdf (patch)
tree6137f8033ca1296527f9d9dad905de3f1a882bb0 /org.eclipse.jgit.pgm
parent6048f34c586daa5b6ada39ccfd397ae2b9fdbfb7 (diff)
downloadjgit-e82cadc0dcece55ff8bad1a890bf9e3f8b802cdf.tar.gz
jgit-e82cadc0dcece55ff8bad1a890bf9e3f8b802cdf.zip
Delete PatienceDiff
HistogramDiff outperforms it for any case where PatienceDiff needs to fallback to another algorithm. Consequently it's not worth keeping around, because we would always want a fallback enabled. Change-Id: I39b99cb1db4b3be74a764dd3d68cd4c9ecd91481 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/DiffAlgorithms.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/DiffAlgorithms.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/DiffAlgorithms.java
index ec329fc0f6..b42b915712 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/DiffAlgorithms.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/DiffAlgorithms.java
@@ -55,7 +55,6 @@ import java.util.List;
import org.eclipse.jgit.diff.DiffAlgorithm;
import org.eclipse.jgit.diff.HistogramDiff;
import org.eclipse.jgit.diff.MyersDiff;
-import org.eclipse.jgit.diff.PatienceDiff;
import org.eclipse.jgit.diff.RawText;
import org.eclipse.jgit.diff.RawTextComparator;
import org.eclipse.jgit.errors.LargeObjectException;
@@ -102,32 +101,6 @@ class DiffAlgorithms extends TextBuiltin {
}
};
- final Algorithm patience = new Algorithm() {
- DiffAlgorithm create() {
- PatienceDiff d = new PatienceDiff();
- d.setFallbackAlgorithm(null);
- return d;
- }
- };
-
- final Algorithm patience_myers = new Algorithm() {
- DiffAlgorithm create() {
- PatienceDiff d = new PatienceDiff();
- d.setFallbackAlgorithm(MyersDiff.INSTANCE);
- return d;
- }
- };
-
- final Algorithm patience_histogram_myers = new Algorithm() {
- DiffAlgorithm create() {
- HistogramDiff d2 = new HistogramDiff();
- d2.setFallbackAlgorithm(MyersDiff.INSTANCE);
- PatienceDiff d1 = new PatienceDiff();
- d1.setFallbackAlgorithm(d2);
- return d1;
- }
- };
-
// -----------------------------------------------------------------------
//
// Implementation of the suite lives below this line.