Browse Source

playback: remove write-only UIView

Felix Paul Kühne 11 years ago
parent
commit
0a89b32085
1 changed files with 0 additions and 8 deletions
  1. 0 8
      AspenProject/VLCMovieViewController.m

+ 0 - 8
AspenProject/VLCMovieViewController.m

@@ -49,7 +49,6 @@
     BOOL _swipeGesturesEnabled;
     NSString * panType;
     UIView *_rootView;
-    UIView *_splashView;
     UIPanGestureRecognizer *_panRecognizer;
     UISwipeGestureRecognizer *_swipeRecognizerLeft;
     UISwipeGestureRecognizer *_swipeRecognizerRight;
@@ -71,8 +70,6 @@
 
 - (void)dealloc
 {
-    if (_splashView)
-        [_splashView removeFromSuperview];
     if (_tapRecognizer)
         [_rootView removeGestureRecognizer:_tapRecognizer];
     if (_swipeRecognizerLeft)
@@ -877,10 +874,6 @@
         [_mediaPlayer play];
         [self.statusLabel showStatusMessage:@"  ►"];
     }
-    [_rootView addSubview:_splashView];
-    [UIView animateWithDuration:1
-                     animations:^{ _splashView.alpha = 0.0f;}
-                     completion:^(BOOL finished){ [_splashView removeFromSuperview]; }];
 }
 
 - (NSString*)detectPanTypeForPan:(UIPanGestureRecognizer*)panRecognizer
@@ -975,7 +968,6 @@
     }
 
     if (swipeRecognizer.state == UIGestureRecognizerStateEnded) {
-        [_rootView addSubview:_splashView];
         if ([_mediaPlayer isPlaying])
             [_mediaPlayer play];