Removed part for direct ways.

Part for computing direct ways is now implemented in C.