Removes unused methods from LineDetector.