[vlc-commits] macosx: Remove unused ExtensionsDelegate
David Fuhrmann
git at videolan.org
Fri Sep 2 00:03:48 CEST 2016
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Sep 1 17:35:09 2016 +0200| [1e5a21b4b32caed9c2b33ad8a9bbdbf0fa3daa75] | committer: David Fuhrmann
macosx: Remove unused ExtensionsDelegate
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e5a21b4b32caed9c2b33ad8a9bbdbf0fa3daa75
---
modules/gui/macosx/VLCExtensionsManager.h | 4 ----
modules/gui/macosx/VLCExtensionsManager.m | 10 ----------
2 files changed, 14 deletions(-)
diff --git a/modules/gui/macosx/VLCExtensionsManager.h b/modules/gui/macosx/VLCExtensionsManager.h
index 5c54cbf..132c8b6 100644
--- a/modules/gui/macosx/VLCExtensionsManager.h
+++ b/modules/gui/macosx/VLCExtensionsManager.h
@@ -34,10 +34,6 @@
@class VLCExtensionsDialogProvider;
- at protocol ExtensionsDelegate <NSObject>
-- (void)extensionsUpdated;
- at end
-
@interface VLCExtensionsManager : NSObject
- (void)buildMenu:(NSMenu *)extMenu;
diff --git a/modules/gui/macosx/VLCExtensionsManager.m b/modules/gui/macosx/VLCExtensionsManager.m
index 3618020..0e8808d 100644
--- a/modules/gui/macosx/VLCExtensionsManager.m
+++ b/modules/gui/macosx/VLCExtensionsManager.m
@@ -41,8 +41,6 @@
NSMutableDictionary *p_extDict;
BOOL b_failed; ///< Flag set to true if we could not load the module
-
- id <ExtensionsDelegate> delegate;
}
@end
@@ -60,8 +58,6 @@
_isUnloading = false;
b_failed = false;
-
- delegate = nil;
}
return self;
@@ -165,7 +161,6 @@
p_extensions_manager = (extensions_manager_t*)vlc_object_create(p_intf, sizeof(extensions_manager_t));
if (!p_extensions_manager) {
b_failed = true;
- [delegate extensionsUpdated];
return false;
}
@@ -176,14 +171,12 @@
vlc_object_release(p_extensions_manager);
p_extensions_manager = NULL;
b_failed = true;
- [delegate extensionsUpdated];
return false;
}
_isUnloading = false;
}
b_failed = false;
- [delegate extensionsUpdated];
return true;
}
@@ -202,9 +195,6 @@
{
[self unloadExtensions];
[self loadExtensions];
-
- if (delegate)
- [delegate extensionsUpdated];
}
- (void)triggerMenu:(id)sender
More information about the vlc-commits
mailing list