From f486ea3dc1b4ad8f6e34671266e4dcd9a850c204 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Thu, 19 Jul 2007 16:27:34 +0000 Subject: [PATCH] Removed Manager.set_pref() function as it's not used anywhere. --- src/core.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/core.py b/src/core.py index 977dac5bf..dc8f6486d 100644 --- a/src/core.py +++ b/src/core.py @@ -304,17 +304,6 @@ class Manager: # Get the value from the preferences object return self.config.get(key) - def set_pref(self, key, value): - # Make sure this is a valid key - if key not in pref.DEFAULT_PREFS.keys(): - raise DelugeError("Asked to change a pref that isn't valid: " + key) - - self.config.set(key, value) - - # Apply the pref, if applicable - if PREF_FUNCTIONS[key] is not None: - PREF_FUNCTIONS[key](value) - # Dump torrent info without adding def dump_torrent_file_info(self, torrent): return deluge_core.dump_file_info(torrent)