forked from premiere/premiere-libtorrent
cleanup unused code
This commit is contained in:
parent
0f760d3fb4
commit
ba95aa27d6
|
@ -429,7 +429,7 @@ namespace libtorrent
|
||||||
// used internally
|
// used internally
|
||||||
void set_queue_position_impl(int p) { m_sequence_number = p; }
|
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,
|
// see if we need to connect to web seeds, and if so,
|
||||||
// connect to them
|
// connect to them
|
||||||
|
|
|
@ -3080,7 +3080,7 @@ retry:
|
||||||
TORRENT_ASSERT(t.want_tick());
|
TORRENT_ASSERT(t.want_tick());
|
||||||
TORRENT_ASSERT(!t.is_aborted());
|
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
|
// if the call to second_tick caused the torrent
|
||||||
// to no longer want to be ticked (i.e. it was
|
// to no longer want to be ticked (i.e. it was
|
||||||
|
|
|
@ -9919,8 +9919,7 @@ namespace libtorrent
|
||||||
: m_ses.session_time() - m_became_seed);
|
: m_ses.session_time() - m_became_seed);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: 2 if residual is not used, remove it
|
void torrent::second_tick(int tick_interval_ms)
|
||||||
void torrent::second_tick(int tick_interval_ms, int /* residual */)
|
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(want_tick());
|
TORRENT_ASSERT(want_tick());
|
||||||
TORRENT_ASSERT(is_single_thread());
|
TORRENT_ASSERT(is_single_thread());
|
||||||
|
|
Loading…
Reference in New Issue