Permalink
Browse files

iOS: ViewController cleanups - delete unused code and properties

  • Loading branch information...
KentuckyCompass committed Jan 2, 2018
1 parent 873dcaa commit e3af9f401f1c5af5478eef206084da3857655b2c
Showing with 5 additions and 20 deletions.
  1. +5 −20 ios/ViewController.mm
View
@@ -30,10 +30,6 @@
#define IS_IPAD() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
#define IS_IPHONE() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone)
#ifndef kCFCoreFoundationVersionNumber_IOS_9_0
#define kCFCoreFoundationVersionNumber_IOS_9_0 1240.10
#endif
class IOSDummyGraphicsContext : public DummyGraphicsContext {
public:
IOSDummyGraphicsContext() {
@@ -53,14 +49,12 @@
Draw::DrawContext *draw_;
};
float dp_xscale = 1.0f;
float dp_yscale = 1.0f;
static float dp_xscale = 1.0f;
static float dp_yscale = 1.0f;
double lastSelectPress = 0.0f;
double lastStartPress = 0.0f;
bool simulateAnalog = false;
extern ScreenManager *screenManager;
static double lastSelectPress = 0.0f;
static double lastStartPress = 0.0f;
static bool simulateAnalog = false;
__unsafe_unretained static ViewController* sharedViewController;
static GraphicsContext *graphicsContext;
@@ -71,8 +65,6 @@ @interface ViewController ()
}
@property (nonatomic, strong) EAGLContext* context;
@property (nonatomic, strong) NSString* documentsPath;
@property (nonatomic, strong) NSString* bundlePath;
@property (nonatomic, strong) NSMutableArray<NSDictionary *>* touches;
//@property (nonatomic) iCadeReaderView* iCadeView;
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
@@ -82,13 +74,6 @@ @interface ViewController ()
@end
@implementation ViewController
-(bool) isArm64 {
size_t size;
cpu_type_t type;
size = sizeof(type);
sysctlbyname("hw.cputype", &type, &size, NULL, 0);
return type == CPU_TYPE_ARM64;
}
-(id) init {
self = [super init];

0 comments on commit e3af9f4

Please sign in to comment.