From d95b37fb33b2266841b4e4c4641da23a4227b312 Mon Sep 17 00:00:00 2001 From: spyhole Date: Mon, 1 Aug 2005 14:24:19 +0000 Subject: [PATCH] no message --- include/libtorrent/torrent.hpp | 8 +------- include/libtorrent/torrent_handle.hpp | 2 -- src/torrent_handle.cpp | 16 ---------------- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index 56fdb07e7..0edbb8d95 100755 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -245,7 +245,7 @@ namespace libtorrent // forcefully sets next_announce to the current time void force_tracker_request(); void force_tracker_request(boost::posix_time::ptime); - void force_tracker_request_on_loop(boost::posix_time::ptime); + // sets the username and password that will be sent to // the tracker void set_tracker_login(std::string const& name, std::string const& pw); @@ -550,12 +550,6 @@ namespace libtorrent m_next_request = t; } - inline void torrent::force_tracker_request_on_loop(boost::posix_time::ptime t) - { - namespace time = boost::posix_time; - m_next_request = t; - } - inline void torrent::set_tracker_login( std::string const& name , std::string const& pw) diff --git a/include/libtorrent/torrent_handle.hpp b/include/libtorrent/torrent_handle.hpp index 7f6eaf209..35e871de5 100755 --- a/include/libtorrent/torrent_handle.hpp +++ b/include/libtorrent/torrent_handle.hpp @@ -261,8 +261,6 @@ namespace libtorrent // timed out. void force_reannounce(boost::posix_time::time_duration) const; - void force_reannounce_on_loop(boost::posix_time::time_duration) const; - // TODO: add a feature where the user can tell the torrent // to finish all pieces currently in the pipeline, and then // abort the torrent. diff --git a/src/torrent_handle.cpp b/src/torrent_handle.cpp index 7df2bd600..ed172fb9c 100755 --- a/src/torrent_handle.cpp +++ b/src/torrent_handle.cpp @@ -499,22 +499,6 @@ namespace libtorrent t->get_policy().peer_from_tracker(adr, id); } - //todo test the function body - void torrent_handle::force_reannounce_on_loop( - boost::posix_time::time_duration duration) const - { - /* - INVARIANT_CHECK; - - if (m_ses == 0) throw_invalid_handle(); - - //if (m_ses == 0) return; - - force_reannounce(duration); - force_reannounce_on_loop(duration); - */ - } - void torrent_handle::force_reannounce( boost::posix_time::time_duration duration) const {