Przeglądaj źródła

Remove write-only variables

Felix Paul Kühne 7 lat temu
rodzic
commit
ef4e98dbb7

+ 0 - 1
Sources/VLCBoxTableViewController.m

@@ -220,7 +220,6 @@
         [connection cancel];
 
         /* now ask VLC to stream the URL we were just passed */
-        VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
         VLCMedia *media = [VLCMedia mediaWithURL:theActualURL];
         VLCMediaList *medialist = [[VLCMediaList alloc] init];
         [medialist addMedia:media];

+ 1 - 1
Sources/VLCDocumentPickerController.m

@@ -70,7 +70,7 @@
     NSString *filePath = [documentsPath stringByAppendingPathComponent:[url lastPathComponent]];
 
     NSError *error = nil;
-    BOOL success = [fileManager moveItemAtPath:[url path] toPath:filePath error:&error];
+    [fileManager moveItemAtPath:[url path] toPath:filePath error:&error];
     if (!error) {
         [[VLCMediaFileDiscoverer sharedInstance] updateMediaList];
     } else {