Remove unused methods in Controller.php