[rygel] Don't keep the UDN in user config anymore



commit 0da129eb94a12e34aebec887fad8ae59501fb92d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sun May 24 23:24:52 2009 +0300

    Don't keep the UDN in user config anymore
---
 src/rygel/rygel-configuration.vala |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/src/rygel/rygel-configuration.vala b/src/rygel/rygel-configuration.vala
index 7f20fce..b91ed28 100644
--- a/src/rygel/rygel-configuration.vala
+++ b/src/rygel/rygel-configuration.vala
@@ -34,7 +34,6 @@ public class Rygel.Configuration {
     protected static const string PORT_KEY = "port";
     protected static const string ENABLED_KEY = "enabled";
     protected static const string TITLE_KEY = "title";
-    protected static const string UDN_KEY = "UDN";
     protected static const string TRANSCODING_KEY = "enable-transcoding";
     protected static const string MP3_TRANSCODER_KEY = "enable-mp3-transcoder";
     protected static const string MP2TS_TRANSCODER_KEY =
@@ -116,17 +115,6 @@ public class Rygel.Configuration {
         return this.get_string (section, TITLE_KEY, default_title);
     }
 
-    public string get_udn (string section) {
-        var udn = this.get_string (section, UDN_KEY, null);
-        if (udn == null) {
-            udn = Utils.generate_random_udn ();
-
-            this.set_string (section, UDN_KEY, udn);
-        }
-
-        return udn;
-    }
-
     public string? get_string (string  section,
                                string  key,
                                string? default_value) {



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