Permalink
Browse files

Removed "dead store" analyse warnings.

  • Loading branch information...
1 parent dd3b83f commit 125761e022958a6f5eef8287c7df90a860bddc3b @Inferis Inferis committed May 10, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 ViewDeck/IIViewDeckController.m
@@ -1170,7 +1170,6 @@ - (void)panned:(UIPanGestureRecognizer*)panner {
[self performOffsetDelegate:@selector(viewDeckController:didPanToOffset:) offset:x];
- BOOL animated = NO;
if (panner.state == UIGestureRecognizerStateEnded) {
if ((self.leftController.view.hidden && !leftWasHidden) || (self.rightController.view.hidden && !rightWasHidden)) {
[self centerViewVisible];
@@ -1186,11 +1185,9 @@ - (void)panned:(UIPanGestureRecognizer*)panner {
// small velocity, no movement
if (x >= w - self.leftLedge - lw3) {
[self openLeftViewAnimated:YES options:UIViewAnimationOptionCurveEaseOut callDelegate:NO completion:nil];
- animated = YES;
}
else if (x <= self.rightLedge + rw3 - w) {
[self openRightViewAnimated:YES options:UIViewAnimationOptionCurveEaseOut callDelegate:NO completion:nil];
- animated = YES;
}
else
[self showCenterView:YES];
@@ -1199,7 +1196,6 @@ - (void)panned:(UIPanGestureRecognizer*)panner {
// swipe to the left
if (x < 0) {
[self openRightViewAnimated:YES options:UIViewAnimationOptionCurveEaseOut callDelegate:YES completion:nil];
- animated = YES;
}
else
[self showCenterView:YES];
@@ -1208,7 +1204,6 @@ - (void)panned:(UIPanGestureRecognizer*)panner {
// swipe to the right
if (x > 0) {
[self openLeftViewAnimated:YES options:UIViewAnimationOptionCurveEaseOut callDelegate:YES completion:nil];
- animated = YES;
}
else
[self showCenterView:YES];

0 comments on commit 125761e

Please sign in to comment.