more trivial cleanup (#979)

This commit is contained in:
Alden Torres 2016-08-02 17:58:15 -04:00 committed by Arvid Norberg
parent 3c9ed50d0b
commit 8fedfcdce6
8 changed files with 5 additions and 78 deletions

View File

@ -35,23 +35,16 @@ POSSIBILITY OF SUCH DAMAGE.
#include <ctime>
#include <algorithm>
#include <deque>
#include <string>
#include <array>
#include <cstdint>
#include "libtorrent/debug.hpp"
#include "libtorrent/aux_/disable_warnings_push.hpp"
#include <boost/optional.hpp>
#include "libtorrent/aux_/disable_warnings_pop.hpp"
#include "libtorrent/config.hpp"
#include "libtorrent/web_connection_base.hpp"
#include "libtorrent/disk_buffer_holder.hpp"
#include "libtorrent/torrent.hpp"
#include "libtorrent/piece_block_progress.hpp"
#include "libtorrent/http_parser.hpp"
namespace libtorrent
{
@ -70,7 +63,7 @@ namespace libtorrent
public:
// this is the constructor where the we are the active part.
// The peer_conenction should handshake and verify that the
// The peer_connection should handshake and verify that the
// other end has the correct id
http_seed_connection(peer_connection_args const& pack
, web_seed_t& web);
@ -124,4 +117,3 @@ namespace libtorrent
}
#endif // TORRENT_WEB_PEER_CONNECTION_HPP_INCLUDED

View File

@ -39,8 +39,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/disable_warnings_push.hpp"
#include <boost/function/function1.hpp>
#include <boost/function/function2.hpp>
#include <boost/shared_ptr.hpp>
#include "libtorrent/aux_/disable_warnings_pop.hpp"
@ -116,7 +114,7 @@ public:
// 4 send command message (CONNECT/ACCEPT)
// to avoid unnecessary copying of the handler,
// store it in a shaed_ptr
// store it in a shared_ptr
boost::shared_ptr<handler_type> h(new handler_type(handler));
using std::placeholders::_1;
@ -186,7 +184,7 @@ public:
char const* session_id() const { return m_session_id.c_str(); }
std::string const& local_endpoint() const { return m_i2p_local_endpoint; }
typedef boost::function<void(error_code const&, char const*)> name_lookup_handler;
typedef std::function<void(error_code const&, char const*)> name_lookup_handler;
void async_name_lookup(char const* name, name_lookup_handler handler);
private:
@ -213,7 +211,7 @@ private:
std::string m_i2p_local_endpoint;
std::string m_session_id;
std::list<std::pair<std::string, name_lookup_handler> > m_name_lookup;
std::list<std::pair<std::string, name_lookup_handler>> m_name_lookup;
enum state_t
{
@ -244,4 +242,3 @@ struct is_error_condition_enum<libtorrent::i2p_error::i2p_error_code>
#endif // TORRENT_USE_I2P
#endif

View File

@ -33,37 +33,16 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef WEB_CONNECTION_BASE_HPP_INCLUDED
#define WEB_CONNECTION_BASE_HPP_INCLUDED
#include "libtorrent/debug.hpp"
#include <ctime>
#include <algorithm>
#include <vector>
#include <deque>
#include <string>
#include <array>
#include <cstdint>
#include "libtorrent/aux_/disable_warnings_push.hpp"
#include <boost/smart_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>
#include "libtorrent/aux_/disable_warnings_pop.hpp"
#include "libtorrent/buffer.hpp"
#include "libtorrent/peer_connection.hpp"
#include "libtorrent/socket.hpp"
#include "libtorrent/peer_id.hpp"
#include "libtorrent/storage.hpp"
#include "libtorrent/stat.hpp"
#include "libtorrent/alert.hpp"
#include "libtorrent/torrent_handle.hpp"
#include "libtorrent/torrent.hpp"
#include "libtorrent/peer_request.hpp"
#include "libtorrent/piece_block_progress.hpp"
#include "libtorrent/config.hpp"
// parse_url
#include "libtorrent/tracker_manager.hpp"
#include "libtorrent/http_parser.hpp"
namespace libtorrent
@ -156,4 +135,3 @@ namespace libtorrent
}
#endif // TORRENT_WEB_CONNECTION_BASE_HPP_INCLUDED

View File

@ -38,14 +38,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include <vector>
#include <deque>
#include <string>
#include <array>
#include <cstdint>
#include "libtorrent/aux_/disable_warnings_push.hpp"
#include <boost/smart_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>
#include "libtorrent/aux_/disable_warnings_pop.hpp"

View File

@ -33,9 +33,6 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef TORRENT_XML_PARSE_HPP
#define TORRENT_XML_PARSE_HPP
#include <cctype>
#include <cstring>
#include "libtorrent/aux_/disable_warnings_push.hpp"
#include <boost/function.hpp>
@ -76,4 +73,3 @@ namespace libtorrent
#endif

View File

@ -37,13 +37,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp"
#include "libtorrent/alert.hpp"
#include "libtorrent/alert_types.hpp"
#include "libtorrent/io_service.hpp"
#include "libtorrent/socket_io.hpp"
#include "libtorrent/time.hpp"
#include "libtorrent/error_code.hpp"
#include "libtorrent/extensions.hpp"
#include "libtorrent/torrent.hpp"
#include "libtorrent/aux_/time.hpp"
#include "libtorrent/performance_counters.hpp"
#include "libtorrent/stack_allocator.hpp"
#include "libtorrent/piece_picker.hpp" // for piece_block
@ -52,9 +49,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/escape_string.hpp" // for convert_from_native
#include "libtorrent/aux_/max_path.hpp" // for TORRENT_MAX_PATH
#include <functional>
#include <utility>
namespace libtorrent {
alert::alert() : m_timestamp(clock_type::now()) {}
@ -2096,4 +2090,3 @@ namespace libtorrent {
#endif // TORRENT_DISABLE_LOGGING
} // namespace libtorrent

View File

@ -30,23 +30,12 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#include "libtorrent/config.hpp"
#include <vector>
#include <cstdio> // for snprintf
#include <cinttypes> // for PRId64 et.al.
#include "libtorrent/config.hpp"
#include "libtorrent/http_seed_connection.hpp"
#include "libtorrent/session.hpp"
#include "libtorrent/identify_client.hpp"
#include "libtorrent/entry.hpp"
#include "libtorrent/bencode.hpp"
#include "libtorrent/alert_types.hpp"
#include "libtorrent/invariant_check.hpp"
#include "libtorrent/io.hpp"
#include "libtorrent/version.hpp"
#include "libtorrent/aux_/session_impl.hpp"
#include "libtorrent/parse_url.hpp"
#include "libtorrent/peer_info.hpp"
#include "libtorrent/hex.hpp" // for is_hex

View File

@ -32,24 +32,11 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp"
#include "libtorrent/aux_/disable_warnings_push.hpp"
#include <vector>
#include <limits>
#include <functional>
#include <cstdlib>
#include "libtorrent/aux_/disable_warnings_pop.hpp"
#include "libtorrent/web_connection_base.hpp"
#include "libtorrent/session.hpp"
#include "libtorrent/identify_client.hpp"
#include "libtorrent/entry.hpp"
#include "libtorrent/bencode.hpp"
#include "libtorrent/alert_types.hpp"
#include "libtorrent/invariant_check.hpp"
#include "libtorrent/io.hpp"
#include "libtorrent/version.hpp"
#include "libtorrent/parse_url.hpp"
#include "libtorrent/peer_info.hpp"
@ -212,4 +199,3 @@ namespace libtorrent
#endif
}