From 15802aa4321ca7d3032098530a20ddea37fec5a5 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 27 Dec 2008 00:02:11 +0000 Subject: [PATCH] Remove 'torrent_alert' handler --- deluge/core/torrentmanager.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 16797ebda..429d241a3 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -146,7 +146,6 @@ class TorrentManager(component.Component): self.on_alert_tracker_reply) self.alerts.register_handler("tracker_announce_alert", self.on_alert_tracker_announce) - self.alerts.register_handler("tracker_alert", self.on_alert_tracker) self.alerts.register_handler("tracker_warning_alert", self.on_alert_tracker_warning) self.alerts.register_handler("tracker_error_alert", @@ -690,18 +689,6 @@ class TorrentManager(component.Component): except KeyError: log.debug("torrent_id doesn't exist.") - def on_alert_tracker(self, alert): - log.debug("on_alert_tracker") - # Get the torrent_id - torrent_id = str(alert.handle.info_hash()) - tracker_status = "%s: %s" % \ - (_("Alert"), str(alert.message()).strip('"')[8:]) - # Set the tracker status for the torrent - try: - self.torrents[torrent_id].set_tracker_status(tracker_status) - except KeyError: - log.debug("torrent_id doesn't exist.") - def on_alert_tracker_warning(self, alert): log.debug("on_alert_tracker_warning") # Get the torrent_id