[vlc-commits] macosx: remove unused inputChanged

Thomas Guillem git at videolan.org
Mon Jun 3 16:16:34 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun  3 08:09:03 2019 +0200| [e2f2277d192db036c9c1541ea4d7be80039e47db] | committer: Thomas Guillem

macosx: remove unused inputChanged

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e2f2277d192db036c9c1541ea4d7be80039e47db
---

 .../macosx/windows/extensions/VLCExtensionsManager.h    |  1 -
 .../macosx/windows/extensions/VLCExtensionsManager.m    | 17 -----------------
 2 files changed, 18 deletions(-)

diff --git a/modules/gui/macosx/windows/extensions/VLCExtensionsManager.h b/modules/gui/macosx/windows/extensions/VLCExtensionsManager.h
index 870a0b9b82..32d1e9e5d5 100644
--- a/modules/gui/macosx/windows/extensions/VLCExtensionsManager.h
+++ b/modules/gui/macosx/windows/extensions/VLCExtensionsManager.h
@@ -37,7 +37,6 @@
 - (void)reloadExtensions;
 
 - (void)triggerMenu:(id)sender;
-- (void)inputChanged:(input_thread_t *)p_input;
 - (void)playingChanged:(int)state;
 - (void)metaChanged:(input_item_t *)p_input;
 
diff --git a/modules/gui/macosx/windows/extensions/VLCExtensionsManager.m b/modules/gui/macosx/windows/extensions/VLCExtensionsManager.m
index 6efafabfb1..82a00d461c 100644
--- a/modules/gui/macosx/windows/extensions/VLCExtensionsManager.m
+++ b/modules/gui/macosx/windows/extensions/VLCExtensionsManager.m
@@ -238,23 +238,6 @@
     }
 }
 
-- (void)inputChanged:(input_thread_t *)p_input
-{
-    // FIXME: this is never called!
-    //This is unlikely, but can happen if no extension modules can be loaded.
-    if (p_extensions_manager == NULL)
-        return;
-    vlc_mutex_lock(&p_extensions_manager->lock);
-
-    extension_t *p_ext;
-    ARRAY_FOREACH(p_ext, p_extensions_manager->extensions) {
-        if (extension_IsActivated(p_extensions_manager, p_ext))
-            extension_SetInput(p_extensions_manager, p_ext, p_input);
-    }
-
-    vlc_mutex_unlock(&p_extensions_manager->lock);
-}
-
 - (void)playingChanged:(int)state
 {
     //This is unlikely, but can happen if no extension modules can be loaded.



More information about the vlc-commits mailing list