minor cleanup refactor
This commit is contained in:
parent
9e4045ed42
commit
b84766e346
|
@ -77,9 +77,6 @@ namespace libtorrent
|
||||||
void TORRENT_NO_RETURN throw_invalid_handle();
|
void TORRENT_NO_RETURN throw_invalid_handle();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using std::shared_ptr;
|
|
||||||
using std::make_shared;
|
|
||||||
|
|
||||||
// holds the state of a block in a piece. Who we requested
|
// holds the state of a block in a piece. Who we requested
|
||||||
// it from and how far along we are at downloading it.
|
// it from and how far along we are at downloading it.
|
||||||
struct TORRENT_EXPORT block_info
|
struct TORRENT_EXPORT block_info
|
||||||
|
@ -895,7 +892,7 @@ namespace libtorrent
|
||||||
// without metadata only if it was started without a .torrent file, e.g.
|
// without metadata only if it was started without a .torrent file, e.g.
|
||||||
// by using the libtorrent extension of just supplying a tracker and
|
// by using the libtorrent extension of just supplying a tracker and
|
||||||
// info-hash.
|
// info-hash.
|
||||||
shared_ptr<const torrent_info> torrent_file() const;
|
std::shared_ptr<const torrent_info> torrent_file() const;
|
||||||
|
|
||||||
#ifndef TORRENT_NO_DEPRECATE
|
#ifndef TORRENT_NO_DEPRECATE
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ struct peer_connection: bandwidth_socket, std::enable_shared_from_this<peer_conn
|
||||||
int m_priority;
|
int m_priority;
|
||||||
bool m_ignore_limits;
|
bool m_ignore_limits;
|
||||||
std::string m_name;
|
std::string m_name;
|
||||||
boost::int64_t m_quota;
|
std::int64_t m_quota;
|
||||||
};
|
};
|
||||||
|
|
||||||
void peer_connection::assign_bandwidth(int channel, int amount)
|
void peer_connection::assign_bandwidth(int channel, int amount)
|
||||||
|
|
Loading…
Reference in New Issue