Remove some dead code.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Fix annoying warning in console.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>