diff --git a/src/path/Curve.js b/src/path/Curve.js index ef2fa1af..7a674cf6 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -2212,8 +2212,8 @@ new function() { // Scope for bezier intersection using fat-line clipping if (pairs.length !== 2) { pairs = null; } else if (!straightBoth) { - // Straight pairs don't need further checks. If we found - // 2 pairs, the end points on v1 & v2 should be the same. + // Straight pairs don't need further checks. If we found 2 pairs, + // the end points on v1 & v2 should be the same. var o1 = Curve.getPart(v1, pairs[0][0], pairs[1][0]), o2 = Curve.getPart(v2, pairs[0][1], pairs[1][1]); // Check if handles of the overlapping curves are the same too. diff --git a/src/path/CurveLocation.js b/src/path/CurveLocation.js index 26f928b2..6c0e8f2a 100644 --- a/src/path/CurveLocation.js +++ b/src/path/CurveLocation.js @@ -290,7 +290,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{ return this._distance; }, - // DOCS: divide(), split(), getOffsetTo(loc) + // DOCS: divide(), split() divide: function() { var curve = this.getCurve(), @@ -313,21 +313,6 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{ return res; }, - getOffsetTo: function(loc) { - var offset = null, - path = this.getPath(); - if (path && path === loc.getPath()) { - var offset1 = this.getOffset(), - offset2 = loc.getOffset(); - offset = offset2 - offset1; - if (offset < 0 && path._closed) { - // Wrap around the end of the path back to the beginning. - offset = path.getLength() - offset2 + offset1; - } - } - return offset; - }, - /** * Checks whether tow CurveLocation objects are describing the same location * on a path, by applying the same tolerances as elsewhere when dealing with