]> git.sesse.net Git - vlc/commitdiff
Remove suspicious and suspiciously dead code
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 10 Jan 2009 17:31:09 +0000 (19:31 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 10 Jan 2009 17:31:09 +0000 (19:31 +0200)
A destructor would never have to release its own object, since the
destructor is only called when the object is not referenced anymore.
On the other hand, it is not clear to me whether SD objects still need
a destructor.

src/playlist/services_discovery.c

index b1774860ff7c8f4eff4d738368cb7e85dcb72e42..864957403ce9f4c84c2bed6e843471b914029acc 100644 (file)
@@ -33,8 +33,6 @@
 #include "../libvlc.h"
 
 
-static void services_discovery_Destructor ( services_discovery_t * p_sd );
-
 /*
  * Services discovery
  * Basically you just listen to Service discovery event through the
@@ -130,17 +128,6 @@ void vlc_sd_Stop ( services_discovery_t * p_sd )
     p_sd->p_module = NULL;
 }
 
-/***********************************************************************
- * Destructor
- ***********************************************************************/
-static void services_discovery_Destructor ( services_discovery_t * p_sd )
-{
-    assert(!p_sd->p_module); /* Forgot to call Stop */
-
-    vlc_event_manager_fini( &p_sd->event_manager );
-    vlc_object_release( p_sd );
-}
-
 /***********************************************************************
  * GetLocalizedName
  ***********************************************************************/