[vlc-commits] macosx: remove unused intf_sys_t

David Fuhrmann git at videolan.org
Tue Feb 25 18:47:38 CET 2014


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Feb 25 18:23:34 2014 +0100| [1eee419fb365ca17d0a341958b5743687af2d3a5] | committer: David Fuhrmann

macosx: remove unused intf_sys_t

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

 modules/gui/macosx/intf.h   |   10 ----------
 modules/gui/macosx/intf.m   |   17 -----------------
 modules/gui/macosx/macosx.m |    2 +-
 3 files changed, 1 insertion(+), 28 deletions(-)

diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h
index bda8cf8..c46f158 100644
--- a/modules/gui/macosx/intf.h
+++ b/modules/gui/macosx/intf.h
@@ -57,16 +57,6 @@ vout_thread_t *getVout(void);
 vout_thread_t *getVoutForActiveWindow(void);
 audio_output_t *getAout(void);
 
-/*****************************************************************************
- * intf_sys_t: description and status of the interface
- *****************************************************************************/
-struct intf_sys_t
-{
-    /* menus handlers */
-    bool b_input_update;
-    bool b_aout_update;
-    bool b_vout_update;
-};
 
 /*****************************************************************************
  * VLCMain interface
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 9a876044..30bb979 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -108,29 +108,12 @@ int OpenIntf (vlc_object_t *p_this)
     [VLCApplication sharedApplication];
 
     intf_thread_t *p_intf = (intf_thread_t*) p_this;
-
-    p_intf->p_sys = malloc(sizeof(intf_sys_t));
-    if (p_intf->p_sys == NULL)
-        return VLC_ENOMEM;
-
-    memset(p_intf->p_sys, 0, sizeof(*p_intf->p_sys));
-
     Run(p_intf);
 
     [o_pool release];
     return VLC_SUCCESS;
 }
 
-/*****************************************************************************
- * CloseIntf: destroy interface
- *****************************************************************************/
-void CloseIntf (vlc_object_t *p_this)
-{
-    intf_thread_t *p_intf = (intf_thread_t*) p_this;
-
-    free(p_intf->p_sys);
-}
-
 static NSLock * o_vout_provider_lock = nil;
 
 static int WindowControl(vout_window_t *, int i_query, va_list);
diff --git a/modules/gui/macosx/macosx.m b/modules/gui/macosx/macosx.m
index 2420f72..94557d7 100644
--- a/modules/gui/macosx/macosx.m
+++ b/modules/gui/macosx/macosx.m
@@ -136,7 +136,7 @@ static const char *const itunes_list_text[] = {
 vlc_module_begin()
     set_description(N_("Mac OS X interface"))
     set_capability("interface", 200)
-    set_callbacks(OpenIntf, CloseIntf)
+    set_callbacks(OpenIntf, NULL)
     set_category(CAT_INTERFACE)
     set_subcategory(SUBCAT_INTERFACE_MAIN)
     cannot_unload_broken_library()



More information about the vlc-commits mailing list