Remove unneeded view code