cleanup unused code

This commit is contained in:
arvidn 2015-08-29 16:07:19 -04:00
parent 0f760d3fb4
commit ba95aa27d6
3 changed files with 3 additions and 4 deletions

View File

@ -429,7 +429,7 @@ namespace libtorrent
// used internally
void set_queue_position_impl(int p) { m_sequence_number = p; }
void second_tick(int tick_interval_ms, int residual);
void second_tick(int tick_interval_ms);
// see if we need to connect to web seeds, and if so,
// connect to them

View File

@ -3080,7 +3080,7 @@ retry:
TORRENT_ASSERT(t.want_tick());
TORRENT_ASSERT(!t.is_aborted());
t.second_tick(tick_interval_ms, m_tick_residual / 1000);
t.second_tick(tick_interval_ms);
// if the call to second_tick caused the torrent
// to no longer want to be ticked (i.e. it was

View File

@ -9919,8 +9919,7 @@ namespace libtorrent
: m_ses.session_time() - m_became_seed);
}
// TODO: 2 if residual is not used, remove it
void torrent::second_tick(int tick_interval_ms, int /* residual */)
void torrent::second_tick(int tick_interval_ms)
{
TORRENT_ASSERT(want_tick());
TORRENT_ASSERT(is_single_thread());