Removed lots of unused code.

With all the recent changes this code is no longer required.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>