]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/ViewController.mm
Further work to improve language configuration :/.
[cydia.git] / CyteKit / ViewController.mm
index 839d2bda2066edffa09269553afff75c6bdfa199..ae7539c547c46624d4099397625e5e9d608df398 100644 (file)
@@ -1,5 +1,5 @@
 /* Cydia - iPhone UIKit Front-End for Debian APT
- * Copyright (C) 2008-2013  Jay Freeman (saurik)
+ * Copyright (C) 2008-2015  Jay Freeman (saurik)
 */
 
 /* GNU General Public License, Version 3 {{{ */
@@ -26,8 +26,6 @@
 
 #include "iPhonePrivate.h"
 
-extern bool IsWildcat_;
-
 @implementation UIViewController (Cydia)
 
 - (BOOL) hasLoaded {
@@ -108,22 +106,12 @@ extern bool IsWildcat_;
     return nil;
 }
 
-- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
-    return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;
-}
-
-- (NSUInteger) supportedInterfaceOrientations {
-    return IsWildcat_ ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait;
-}
-
-- (BOOL) shouldAutorotate {
-    return YES;
-}
-
 - (void) setPageColor:(UIColor *)color {
     if (color == nil)
         color = [UIColor groupTableViewBackgroundColor];
     color_ = color;
 }
 
+#include "InterfaceOrientation.h"
+
 @end