Removed unneeded code and unused imports.

Signed-off-by: Tabor Kvasnicka <kamakwazee@gmail.com>