Remove dead code

There are bunch of commented and #if 0'ed code that has been so for long
time so better to drop them.