diff --git a/team/bundles/org.eclipse.compare.core/src/org/eclipse/compare/rangedifferencer/RangeDifferencer.java b/team/bundles/org.eclipse.compare.core/src/org/eclipse/compare/rangedifferencer/RangeDifferencer.java index 88c735a0e08..eb62f64e68c 100644 --- a/team/bundles/org.eclipse.compare.core/src/org/eclipse/compare/rangedifferencer/RangeDifferencer.java +++ b/team/bundles/org.eclipse.compare.core/src/org/eclipse/compare/rangedifferencer/RangeDifferencer.java @@ -97,64 +97,7 @@ public static RangeDifference[] findDifferences(IProgressMonitor pm, IRangeCompa * @since org.eclipse.compare.core 3.5 */ public static RangeDifference[] findDifferences(AbstractRangeDifferenceFactory factory, IProgressMonitor pm, IRangeComparator left, IRangeComparator right) { - return balanceDifferences(RangeComparatorLCS.findDifferences(factory, pm, left, right), factory, left, right); - } - - /** - * Balance differences. The LCS computation tries to produce identical parts in - * the comparison as large as possible. That is not necessarily what humans - * expect. - *
- * Imagine the ranges ...ABCDABEF... where LCS has led to marking CDAB as
- * difference (because it tries to maximize the sequence before that change).
- * E.g. AB[CDAB]EF is the marked change. If the other side is an _empty_ change,
- * then humans typically prefer BCDA as change, e.g. A[BCDA]BEF. In fact,
- * anything from [ABCD]ABEF to AB[CDAB]EF is possible, and choosing the median
- * of all those possibilities should lead to better results if the input is for
- * instance structured text (with different indentation levels).
- *
- * @param diff if not null
used to report progress
- * @param factory factory to instantiate new {@link RangeDifference}s
- * @param left the left range comparator
- * @param right the right range comparator
- * @return an array of range differences, or an empty array if no differences
- * were found
- */
- private static RangeDifference[] balanceDifferences(RangeDifference[] diffs, AbstractRangeDifferenceFactory factory, IRangeComparator left,
- IRangeComparator right) {
- ArrayList