Unused code removed from controllers