From ba514f0b0e88da9397e310d03f3d23b7118f6842 Mon Sep 17 00:00:00 2001 From: John Garland Date: Sun, 9 May 2010 17:39:45 +1000 Subject: [PATCH] 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 insertion(+), 8 deletions(-) diff --git a/deluge/plugins/label/label/core.py b/deluge/plugins/label/label/core.py index e06d3b144..f26f9fc70 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 1fdfa3962..62e97eab6 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 690d4aca3..085a34c18 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):