Removed dead code

Cleaned up all ``#if 0``'s.

Note that if the unused code should be needed some day it can still be found in the repositories history.