rygel r96 - in trunk: . src



Author: zeeshanak
Date: Tue Oct 28 21:00:13 2008
New Revision: 96
URL: http://svn.gnome.org/viewvc/rygel?rev=96&view=rev

Log:
Remove the unused commented-out code.

Modified:
   trunk/ChangeLog
   trunk/src/gupnp-connection-manager.vala

Modified: trunk/src/gupnp-connection-manager.vala
==============================================================================
--- trunk/src/gupnp-connection-manager.vala	(original)
+++ trunk/src/gupnp-connection-manager.vala	Tue Oct 28 21:00:13 2008
@@ -30,41 +30,6 @@
     private string sink_protocol_info   = "";
     private string connection_ids       = "0";
 
-    // Creates a list of supported sink protocols based on GStreamer's
-    // registry. We don't use this because of the spam it generates ..
-    /*
-    private void setup_sink_protocol_info () {
-        Gst.Registry reg = Gst.Registry.get_default ();
-
-        Gee.HashSet<string> mime_types =
-            new Gee.HashSet<string> (GLib.str_hash, GLib.str_equal);
-
-        weak List<Gst.ElementFactory> factories =
-                reg.get_feature_list (typeof (Gst.ElementFactory));
-        foreach (Gst.ElementFactory factory in factories) {
-            weak List<Gst.StaticPadTemplate> templates =
-                factory.staticpadtemplates;
-            foreach (weak Gst.StaticPadTemplate template in templates) {
-                if (template.direction != Gst.PadDirection.SINK) {
-                    continue;
-                }
-
-                Gst.Caps caps = template.static_caps.get ();
-                for (int i = 0; i < caps.get_size (); i++) {
-                    weak Gst.Structure str =
-                        template.static_caps.get_structure (i);
-
-                    mime_types.add (str.get_name ());
-                }
-            }
-        }
-
-        foreach (string type in mime_types) {
-            stdout.printf ("%s\n", type);
-        }
-    }
-    */
-
     construct {
         this.query_variable["SourceProtocolInfo"] +=
                         this.query_source_protocol_info_cb;



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