diff --git a/include/libtorrent/peer_connection.hpp b/include/libtorrent/peer_connection.hpp index bad040746..7dfa3574e 100644 --- a/include/libtorrent/peer_connection.hpp +++ b/include/libtorrent/peer_connection.hpp @@ -523,9 +523,6 @@ namespace aux { , char const* event, char const* fmt, ...) const noexcept final TORRENT_FORMAT(4,5); void peer_log(peer_log_alert::direction_t direction , char const* event) const noexcept; - - time_point m_connect_time; - time_point m_bitfield_time; #endif // the message handlers are called diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index b9a21d264..641ea3dc8 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1233,7 +1233,6 @@ namespace libtorrent { INVARIANT_CHECK; #ifndef TORRENT_DISABLE_LOGGING - m_connect_time = clock_type::now(); peer_log(peer_log_alert::info, "ATTACH", "attached to torrent"); #endif @@ -2130,12 +2129,6 @@ namespace libtorrent { m_bitfield_received = true; -#ifndef TORRENT_DISABLE_LOGGING - m_bitfield_time = clock_type::now(); - t->debug_log("HANDSHAKE [%p] (%d ms)" - , static_cast(this) - , int(total_milliseconds(m_bitfield_time - m_connect_time))); -#endif // if we don't have metadata yet // just remember the bitmask // don't update the piecepicker @@ -3258,13 +3251,6 @@ namespace libtorrent { m_upload_only = true; m_bitfield_received = true; -#ifndef TORRENT_DISABLE_LOGGING - m_bitfield_time = clock_type::now(); - t->debug_log("HANDSHAKE [%p] (%d ms)" - , static_cast(this) - , int(total_milliseconds(m_bitfield_time - m_connect_time))); -#endif - // if we don't have metadata yet // just remember the bitmask // don't update the piecepicker @@ -3331,12 +3317,6 @@ namespace libtorrent { t->set_seed(m_peer_info, false); m_bitfield_received = true; -#ifndef TORRENT_DISABLE_LOGGING - m_bitfield_time = clock_type::now(); - t->debug_log("HANDSHAKE [%p] (%d ms)" - , static_cast(this) - , int(total_milliseconds(m_bitfield_time - m_connect_time))); -#endif m_have_piece.clear_all(); m_num_pieces = 0; @@ -6017,10 +5997,6 @@ namespace libtorrent { INVARIANT_CHECK; -#ifndef TORRENT_DISABLE_LOGGING - m_connect_time = aux::time_now(); -#endif - // if t is nullptr, we better not be connecting, since // we can't decrement the connecting counter std::shared_ptr t = m_torrent.lock();