From 963b5f5a10c6ed06f2c20a01f1ac48fd88cf7097 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Thu, 10 Feb 2011 17:18:55 +0200 Subject: [PATCH] ui: Remove redundant construction method --- src/ui/rygel-writable-user-config.vala | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/ui/rygel-writable-user-config.vala b/src/ui/rygel-writable-user-config.vala index d837c20..049e9f6 100644 --- a/src/ui/rygel-writable-user-config.vala +++ b/src/ui/rygel-writable-user-config.vala @@ -80,22 +80,6 @@ public class Rygel.WritableUserConfig : Rygel.UserConfig { this.set_bool ("general", ALLOW_DELETION_KEY, value); } - public WritableUserConfig () throws Error { - this.key_file = new KeyFile (); - - var dirs = new string[2]; - dirs[0] = Environment.get_user_config_dir (); - dirs[1] = BuildConfig.SYS_CONFIG_DIR; - - string path; - this.key_file.load_from_dirs (CONFIG_FILE, - dirs, - out path, - KeyFileFlags.KEEP_COMMENTS | - KeyFileFlags.KEEP_TRANSLATIONS); - debug ("Loaded user configuration from file '%s'", path); - } - public void save () { // Always write to user's config string path = Path.build_filename (Environment.get_user_config_dir (), -- 2.7.4