headers code cleanup, removed unused fields in torrent class (#2775)

This commit is contained in:
Alden Torres 2018-02-06 02:32:19 -05:00 committed by Arvid Norberg
parent 15a8a17a6f
commit d2e874fca8
4 changed files with 3 additions and 15 deletions

View File

@ -136,4 +136,3 @@ private:
} // libtorrent
#endif

View File

@ -109,7 +109,6 @@ namespace libtorrent {
struct add_torrent_params;
struct storage_interface;
class bt_peer_connection;
struct listen_socket_t;
peer_id generate_peer_id(aux::session_settings const& sett);
@ -600,7 +599,7 @@ namespace libtorrent {
int priority() const;
#ifndef TORRENT_NO_DEPRECATE
void set_priority(int const prio);
void set_priority(int prio);
#endif // TORRENT_NO_DEPRECATE
// --------------------------------------------
@ -1173,7 +1172,7 @@ namespace libtorrent {
void on_storage_moved(status_t status, std::string const& path
, storage_error const& error);
void on_file_renamed(std::string const& filename
, file_index_t const file_idx
, file_index_t file_idx
, storage_error const& error);
void on_cache_flushed();
@ -1188,8 +1187,6 @@ namespace libtorrent {
int prioritize_tracker(int tracker_index);
int deprioritize_tracker(int tracker_index);
bool request_bandwidth_from_session(int channel) const;
void update_peer_interest(bool was_finished);
void prioritize_udp_trackers();
@ -1610,12 +1607,6 @@ namespace libtorrent {
// the DHT
bool m_announce_to_dht:1;
// these represent whether or not this torrent is counted
// in the total counters of active seeds and downloads
// in the session.
bool m_is_active_download:1;
bool m_is_active_finished:1;
// even if we're not built to support SSL torrents,
// remember that this is an SSL torrent, so that we don't
// accidentally start seeding it without any authentication.

View File

@ -163,7 +163,7 @@ namespace libtorrent {
explicit torrent_info(span<char const> buffer, from_span_t);
explicit torrent_info(std::string const& filename);
#endif // BOOST_NO_EXCEPTIONS
explicit torrent_info(torrent_info const& t);
torrent_info(torrent_info const& t);
explicit torrent_info(sha1_hash const& info_hash);
torrent_info(bdecode_node const& torrent_file, error_code& ec);
torrent_info(char const* buffer, int size, error_code& ec)

View File

@ -200,8 +200,6 @@ namespace libtorrent {
, m_padding(0)
, m_incomplete(0xffffff)
, m_announce_to_dht(!(p.flags & torrent_flags::paused))
, m_is_active_download(false)
, m_is_active_finished(false)
, m_ssl_torrent(false)
, m_deleted(false)
, m_auto_managed(p.flags & torrent_flags::auto_managed)