From d7379227abaf2d8d18a36da035147c8b54bef903 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 2 Aug 2007 18:44:27 +0000 Subject: [PATCH] damn peer block --- src/deluge_core.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index de8ff6cb0..9c2411cca 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -86,7 +86,6 @@ using namespace libtorrent; #define EVENT_PIECE_FINISHED 15 #define EVENT_BLOCK_DOWNLOADING 16 #define EVENT_BLOCK_FINISHED 17 -#define EVENT_PEER_BLOCKED 18 #define STATE_QUEUED 0 #define STATE_CHECKING 1 @@ -1113,21 +1112,6 @@ static PyObject *torrent_pop_event(PyObject *self, PyObject *args) "message", a->msg().c_str()); else { Py_INCREF(Py_None); return Py_None; } - } else if (dynamic_cast(popped_alert)) - { - torrent_handle handle = (dynamic_cast(popped_alert))->handle; - long index = get_torrent_index(handle); - if (PyErr_Occurred()) - return NULL; - - if (handle_exists(handle)) - return Py_BuildValue("{s:i,s:i,s:i,s:s}", - "event_type", EVENT_PEER_BLOCKED, - "unique_ID", M_torrents->at(index).unique_ID, - "peer_ip", ip, - "message", a->msg().c_str()); - else - { Py_INCREF(Py_None); return Py_None; } } else if (dynamic_cast(popped_alert)) { torrent_handle handle = (dynamic_cast(popped_alert))->handle;