summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Garland <johnnyg@gmail.com>2009-06-24 03:22:06 +0000
committerJohn Garland <johnnyg@gmail.com>2009-06-24 03:22:06 +0000
commitc62cf10dc8578976021fa005948e4e58c6d30665 (patch)
treea3cab07e208ba7da37b49232e236c4c71c157738
parentc768eb5b13c098319201698107e03602ac77a203 (diff)
downloaddeluge-c62cf10dc8578976021fa005948e4e58c6d30665.tar.gz
deluge-c62cf10dc8578976021fa005948e4e58c6d30665.tar.bz2
deluge-c62cf10dc8578976021fa005948e4e58c6d30665.zip
Fixed #916.
Removed unused code.
-rw-r--r--deluge/plugins/label/label/core.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/deluge/plugins/label/label/core.py b/deluge/plugins/label/label/core.py
index a3034d33e..36bcf23f7 100644
--- a/deluge/plugins/label/label/core.py
+++ b/deluge/plugins/label/label/core.py
@@ -102,7 +102,6 @@ class Core(CorePluginBase):
core = self.plugin.get_core()
self.config = ConfigManager("label.conf", defaults=CONFIG_DEFAULTS)
self.core_cfg = ConfigManager("core.conf")
- #self.set_config_defaults()
#reduce typing, assigning some values to self...
self.torrents = core.torrents.torrents
@@ -178,16 +177,6 @@ class Core(CorePluginBase):
self.clean_config()
self.config.save()
- def set_config_defaults(self):
- #TODO : there is a deluge builtin for this, use it!
- changed = False
- for key, value in CONFIG_DEFAULTS.iteritems():
- if not key in self.config.config:
- self.config[key] = value
- changed = True
- if changed:
- self.config.save()
-
def export_get_labels(self):
return sorted(self.labels.keys())