Remove dead code

Reviewer: trivial

Deletes 1600 lines of dead code, mostly in the C backend.