Remove unnecessary code.

Signed-off-by: Johan Fredriksson <johanfredriksson1987@gmail.com>