[banshee] libbanshee: Remove dead code (bgo#644648)



commit 265f554ce6eec9d1d360f3d072cd36472041885a
Author: Sjoerd Simons <sjoerd luon net>
Date:   Sun Mar 13 14:26:15 2011 +0000

    libbanshee: Remove dead code (bgo#644648)
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 libbanshee/banshee-player-pipeline.c |    9 ---------
 libbanshee/banshee-player-private.h  |    5 -----
 libbanshee/banshee-player.c          |    7 -------
 3 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/libbanshee/banshee-player-pipeline.c b/libbanshee/banshee-player-pipeline.c
index a9677ce..e25f55f 100644
--- a/libbanshee/banshee-player-pipeline.c
+++ b/libbanshee/banshee-player-pipeline.c
@@ -289,15 +289,6 @@ _bp_pipeline_construct (BansheePlayer *player)
     // source and decoder elements) based on source URI and stream content
     player->playbin = gst_element_factory_make ("playbin2", "playbin");
 
-    player->supports_stream_volume = FALSE;
-#if BANSHEE_CHECK_GST_VERSION(0,10,25)
-    player->supports_stream_volume = gst_element_implements_interface (
-        player->playbin, GST_TYPE_STREAM_VOLUME);
-#endif
-
-    bp_debug ("Stream volume supported: %s",
-        player->supports_stream_volume ? "YES" : "NO");
-
 #ifdef ENABLE_GAPLESS
     // FIXME: Connect a proxy about-to-finish callback that will generate a next-track-starting callback.
     // This can be removed once playbin2 generates its own next-track signal.
diff --git a/libbanshee/banshee-player-private.h b/libbanshee/banshee-player-private.h
index 8525ee0..24eb5eb 100644
--- a/libbanshee/banshee-player-private.h
+++ b/libbanshee/banshee-player-private.h
@@ -70,10 +70,6 @@
         (GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR == (minor) && \
             GST_VERSION_MICRO >= (micro)))
 
-#if BANSHEE_CHECK_GST_VERSION(0,10,25)
-#include <gst/interfaces/streamvolume.h>
-#endif
-
 #ifdef WIN32
 #define bp_debug(x) banshee_log_debug ("player", x)
 #define bp_debug2(x, a2) banshee_log_debug ("player", x, a2)
@@ -152,7 +148,6 @@ struct BansheePlayer {
     gboolean buffering;
     gchar *cdda_device;
     gboolean in_gapless_transition;
-    gboolean supports_stream_volume;
     gboolean audiosink_has_volume;
     
     // Video State
diff --git a/libbanshee/banshee-player.c b/libbanshee/banshee-player.c
index 2e59992..6b23826 100644
--- a/libbanshee/banshee-player.c
+++ b/libbanshee/banshee-player.c
@@ -308,13 +308,6 @@ bp_supports_gapless (BansheePlayer *player)
 }
 
 P_INVOKE gboolean
-bp_supports_stream_volume (BansheePlayer *player)
-{
-    g_return_val_if_fail (IS_BANSHEE_PLAYER (player), FALSE);
-    return player->supports_stream_volume;
-}
-
-P_INVOKE gboolean
 bp_audiosink_has_volume (BansheePlayer *player)
 {
     g_return_val_if_fail (IS_BANSHEE_PLAYER (player), FALSE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]