         XCTAssertEqualWithAccuracy(i2[2].t1, 0.75, accuracy: epsilon)
         XCTAssertEqualWithAccuracy(i2[2].t2, 0.0, accuracy: epsilon)
     }
-    
-    private func intersections(_ intersections: [Intersection], betweenCurve c1: BezierCurve, andOtherCurve c2: BezierCurve, areWithinTolerance epsilon: BKFloat) -> Bool {
-        for i in intersections {
-            let p1 = c1.compute(i.t1)
-            let p2 = c2.compute(i.t2)
-            if (p1 - p2).length > epsilon {
-                return false
-            }
-        }
-        return true
-    }
-    
+        
     func testIntersectsDegenerateCubic1() {
         // a special case where the cubic is degenerate (it can actually be described as a quadratic)
         let epsilon: BKFloat = 0.00001

 testOutlinesShapes2
    */

}

        let l = LineSegment(p0: BKPoint(x:1.0, y: 2.0), p1: BKPoint(x: 4.0, y: 2.0))
        let i = l.intersects(curve: c)
        XCTAssertEqual(i.count, 1)
        XCTAssert(BezierKitTests.intersections(i, betweenCurve: l, andOtherCurve: c, areWithinTolerance: epsilon))
    }

    
