Removed useless code from AppDelegate