Module: deluge
Branch: 1.3-stable
Commit: 1bcfc91c3500503718dc0f3c7e8e69646154b523

Author: John Garland <[email protected]>
Date:   Sun May  9 17:39:45 2010 +1000

Remove unused code from label plugin

---

 deluge/plugins/label/label/core.py           |    4 +---
 deluge/plugins/label/label/gtkui/__init__.py |    3 ---
 deluge/plugins/label/label/gtkui/submenu.py  |    2 --
 3 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/deluge/plugins/label/label/core.py 
b/deluge/plugins/label/label/core.py
index e06d3b1..f26f9fc 100644
--- a/deluge/plugins/label/label/core.py
+++ b/deluge/plugins/label/label/core.py
@@ -259,7 +259,7 @@ class Core(CorePluginBase):
         return False
 
     @export
-    def set_options(self, label_id, options_dict , apply = False):
+    def set_options(self, label_id, options_dict):
         """update the label options
 
         options_dict :
@@ -271,8 +271,6 @@ class Core(CorePluginBase):
             "apply_max":bool(),
             "move_completed_to":string() or None
         }
-
-        apply : applies download-options to all torrents currently labelled by 
label_id
         """
         CheckInput(label_id in self.labels , _("Unknown Label"))
         for key in options_dict.keys():
diff --git a/deluge/plugins/label/label/gtkui/__init__.py 
b/deluge/plugins/label/label/gtkui/__init__.py
index 1fdfa39..62e97ea 100644
--- a/deluge/plugins/label/label/gtkui/__init__.py
+++ b/deluge/plugins/label/label/gtkui/__init__.py
@@ -46,11 +46,8 @@ import sidebar_menu
 import label_config
 import submenu
 
-from deluge.configmanager import ConfigManager
-config  = ConfigManager("label.conf")
 NO_LABEL = "No Label"
 
-
 def cell_data_label(column, cell, model, row, data):
     cell.set_property('text', str(model.get_value(row, data)))
 
diff --git a/deluge/plugins/label/label/gtkui/submenu.py 
b/deluge/plugins/label/label/gtkui/submenu.py
index 690d4ac..085a34c 100644
--- a/deluge/plugins/label/label/gtkui/submenu.py
+++ b/deluge/plugins/label/label/gtkui/submenu.py
@@ -41,8 +41,6 @@ from deluge import component    # for systray
 import gtk, gobject
 from deluge.ui.client import client
 
-from deluge.configmanager import ConfigManager
-config  = ConfigManager("label.conf")
 NO_LABEL = "No Label"
 
 class LabelMenu(gtk.MenuItem):

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to