Skip to content
Browse files

Fix dead stores in DemoWindowController, always enable static analysis

  • Loading branch information...
1 parent b5efce8 commit 43fbab3f4cc24da336afe5634f14bc72cf50733f @jspahrsummers committed
Showing with 1 addition and 4 deletions.
  1. +1 −0 Configuration/Base.xcconfig
  2. +0 −4 Demos/OSXDemo/OSXDemo/DemoWindowController.m
View
1 Configuration/Base.xcconfig
@@ -22,4 +22,5 @@ GCC_WARN_MISSING_PARENTHESES = YES
GCC_WARN_SIGN_COMPARE = YES
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
MACOSX_DEPLOYMENT_TARGET = 10.7
+RUN_CLANG_STATIC_ANALYZER = YES
View
4 Demos/OSXDemo/OSXDemo/DemoWindowController.m
@@ -79,14 +79,12 @@ - (void)drawLayer:(MALayer *)layer inContext:(CGContextRef)context {
#pragma mark Actions
- (IBAction)changeAnchorPoint:(id)sender {
- CGPoint oldAnchor = self.prettyLayer.anchorPoint;
CGPoint newAnchor = anchorArray[self.anchorIndex % 5];
self.anchorIndex++;
self.prettyLayer.anchorPoint = newAnchor;
}
- (IBAction)flipABitch:(id)sender {
- CGSize size = self.contentView.bounds.size;
CGAffineTransform transform = self.prettyLayer.affineTransform;
transform = CGAffineTransformScale(transform, -1, -1);
@@ -95,7 +93,6 @@ - (IBAction)flipABitch:(id)sender {
}
- (IBAction)flipDemTables:(id)sender {
- CGSize size = self.contentView.bounds.size;
CGAffineTransform transform = self.prettyLayer.affineTransform;
transform = CGAffineTransformScale(transform, 1, -1);
@@ -104,7 +101,6 @@ - (IBAction)flipDemTables:(id)sender {
}
- (IBAction)brotate:(id)sender {
- CGSize size = self.contentView.bounds.size;
CGAffineTransform transform = self.prettyLayer.affineTransform;
transform = CGAffineTransformRotate(transform, M_PI_4/4);

0 comments on commit 43fbab3

Please sign in to comment.
Something went wrong with that request. Please try again.