Browse Source

VLCNetworkServerBrowserVLCMedia: Remove dialog completionHandler

For now since we do not notify the user about the status of the library
this is unnecessary.
Soomin Lee 5 years ago
parent
commit
f1d4811630

+ 0 - 18
SharedSources/ServerBrowsing/General/VLCNetworkServerBrowserVLCMedia.m

@@ -50,29 +50,11 @@
         _dialogProvider = [[VLCDialogProvider alloc] initWithLibrary:[VLCLibrary sharedLibrary] customUI:YES];
         _customDialogHandler = [[VLCCustomDialogRendererHandler alloc]
                                 initWithDialogProvider:_dialogProvider];
-
-        __weak typeof(self) weakSelf = self;
-        _customDialogHandler.completionHandler = ^(VLCCustomDialogRendererHandlerCompletionType status)
-        {
-            [weakSelf customDialogCompletionHandlerWithStatus:status];
-        };
         _dialogProvider.customRenderer = _customDialogHandler;
     }
     return self;
 }
 
-- (void)customDialogCompletionHandlerWithStatus:(VLCCustomDialogRendererHandlerCompletionType)status
-{
-    switch (status) {
-        case VLCCustomDialogRendererHandlerCompletionTypeError:
-            // Disable for now, it seems that vlc is sending us a bit too much error callbacks
-            // [self.delegate networkServerBrowserShouldPopView:self];
-            break;
-        default:
-            break;
-    }
-}
-
 - (BOOL)shouldFilterMedia:(VLCMedia *)media
 {
     NSString *absoluteString = media.url.absoluteString;