Removed some obsolete code

- canEditDist is obsolete, removed some more references to it