Clean up a bunch of properties; remove unused ones, use automatic ones where possible...
[enjoyable.git] / TargetMouseScroll.m
index 4d6f409..6986004 100644 (file)
 
 @implementation TargetMouseScroll
 
-@synthesize amount;
-
 + (NSString *)serializationCode {
     return @"mscroll";
 }
 
 - (NSDictionary *)serialize {
-    return @{ @"type": @"mscroll", @"amount": @(self.amount) };
+    return @{ @"type": @"mscroll", @"amount": @(_amount) };
 }
 
 + (Target *)targetDeserialize:(NSDictionary *)serialization
@@ -30,7 +28,7 @@
     CGEventRef scroll = CGEventCreateScrollWheelEvent(NULL,
                                                       kCGScrollEventUnitLine,
                                                       1,
-                                                      self.amount);
+                                                      _amount);
     CGEventPost(kCGHIDEventTap, scroll);
     CFRelease(scroll);
 }