Переглянути джерело

Cosmetics

(cherry picked from commit 5c6cd73a467c8d012db65b7af97c3c7211b95089)
Felix Paul Kühne 10 роки тому
батько
коміт
7d490b501e

+ 0 - 3
Sources/VLCPlayerDisplayController.h

@@ -10,9 +10,6 @@
  * Refer to the COPYING file of the official project for license.
  *****************************************************************************/
 
-
-#import <Foundation/Foundation.h>
-
 @class VLCPlaybackController;
 
 typedef NS_ENUM(NSUInteger, VLCPlayerDisplayControllerDisplayMode) {

+ 3 - 18
Sources/VLCPlayerDisplayController.m

@@ -27,19 +27,9 @@ static NSString *const VLCPlayerDisplayControllerDisplayModeKey = @"VLCPlayerDis
 
 + (void)initialize
 {
-    [[NSUserDefaults standardUserDefaults] registerDefaults:
-  @{
-    VLCPlayerDisplayControllerDisplayModeKey : @(VLCPlayerDisplayControllerDisplayModeFullscreen),
-    }];
+    [[NSUserDefaults standardUserDefaults] registerDefaults:@{VLCPlayerDisplayControllerDisplayModeKey : @(VLCPlayerDisplayControllerDisplayModeFullscreen)}];
 }
 
-- (instancetype)init
-{
-    self = [super init];
-    if (self) {
-    }
-    return self;
-}
 static inline void commonSetup(VLCPlayerDisplayController *self)
 {
     NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
@@ -124,8 +114,6 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
     return _movieViewController;
 }
 
-
-
 #pragma mark - Notification Handling
 
 - (void)playbackDidStart:(NSNotification *)notification
@@ -168,12 +156,12 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
 }
 
 #pragma mark - presentation handling
+
 - (BOOL)shouldAnimate
 {
     return [[UIApplication sharedApplication] applicationState] != UIApplicationStateBackground;
 }
 
-
 - (void)dismissPlaybackView
 {
     switch (self.displayMode) {
@@ -205,9 +193,8 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
     }
 }
 
-
-
 #pragma mark - fullscreen player
+
 - (void)_presentFullscreenPlaybackViewIfNeeded
 {
     if (!self.movieViewController.presentingViewController) {
@@ -236,10 +223,8 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
 
 #pragma mark - miniplayer
 
-
 - (void)_showHideMiniPlaybackView
 {
-
     VLCPlaybackController *playbackController = [VLCPlaybackController sharedInstance];
     VLCMiniPlaybackView *miniPlaybackView = self.miniPlaybackView;
     const NSTimeInterval animationDuration = 0.25;

+ 0 - 3
Sources/VLCPlaylistViewController.m

@@ -1569,9 +1569,6 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
     NSUInteger substringCount = substrings.count;
     NSUInteger searchStringCount = stringsToSearch.count;
 
-    NSLog(@"substrings: %@", substrings);
-    NSLog(@"strings to search %@", stringsToSearch);
-
     for (NSUInteger x = 0; x < substringCount; x++) {
         for (NSUInteger y = 0; y < searchStringCount; y++) {
             nameRange = [stringsToSearch[y] rangeOfString:substrings[x] options:NSCaseInsensitiveSearch];

+ 1 - 1
Sources/VLCSharedLibraryListViewController.m

@@ -252,7 +252,7 @@
 
 - (void)_downloadFileFromMediaItem:(NSURL *)itemURL
 {
-    NSLog(@"trying to download %@", [itemURL absoluteString]);
+    APLog(@"trying to download %@", [itemURL absoluteString]);
     if (![[itemURL absoluteString] isSupportedFormat]) {
         UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"FILE_NOT_SUPPORTED", nil) message:[NSString stringWithFormat:NSLocalizedString(@"FILE_NOT_SUPPORTED_LONG", nil), [itemURL absoluteString]] delegate:self cancelButtonTitle:NSLocalizedString(@"BUTTON_CANCEL", nil) otherButtonTitles:nil];
         [alert show];