From 61ae2c834b3efaa643c00cf77847ac49ed1fb4d6 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Fri, 16 Mar 2018 08:24:43 -0400 Subject: [PATCH] removed unused bt_peer_connection::on_keepalive --- include/libtorrent/bt_peer_connection.hpp | 1 - src/bt_peer_connection.cpp | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/include/libtorrent/bt_peer_connection.hpp b/include/libtorrent/bt_peer_connection.hpp index b3111cabc..8240209a1 100644 --- a/include/libtorrent/bt_peer_connection.hpp +++ b/include/libtorrent/bt_peer_connection.hpp @@ -199,7 +199,6 @@ namespace libtorrent { // be called. i.e. most handlers need // to check how much of the packet they // have received before any processing - void on_keepalive(); void on_choke(int received); void on_unchoke(int received); void on_interested(int received); diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index 76038812b..0dd8fc070 100644 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -795,20 +795,6 @@ namespace { // message handlers - // ----------------------------- - // --------- KEEPALIVE --------- - // ----------------------------- - - void bt_peer_connection::on_keepalive() - { - INVARIANT_CHECK; - -#ifndef TORRENT_DISABLE_LOGGING - peer_log(peer_log_alert::incoming_message, "KEEPALIVE"); -#endif - incoming_keepalive(); - } - // ----------------------------- // ----------- CHOKE ----------- // -----------------------------