Commit 515fbc75 authored by Jakob Otto's avatar Jakob Otto

Cleanup unused includes

parent ac6ed000
......@@ -19,7 +19,6 @@
#pragma once
#include <string>
#include <vector>
#include "caf/attach_stream_source.hpp"
#include "caf/behavior.hpp"
......
......@@ -21,7 +21,6 @@
#include <cstdint>
#include <limits>
#include <string>
#include <vector>
#include "caf/behavior.hpp"
#include "caf/event_based_actor.hpp"
......
......@@ -18,8 +18,6 @@
#pragma once
#include <vector>
#include "caf/logger.hpp"
#include "caf/net/make_endpoint_manager.hpp"
#include "caf/net/socket.hpp"
......@@ -77,10 +75,9 @@ public:
CAF_LOG_DEBUG("unable to get multiplexer from parent");
return false;
}
auto child = make_endpoint_manager(mpx, parent.system(),
stream_transport<
application_type>{*x,
factory_.make()});
auto child = make_endpoint_manager(
mpx, parent.system(),
stream_transport<application_type>{*x, factory_.make()});
if (auto err = child->init())
return false;
return true;
......
......@@ -24,7 +24,6 @@
#include "caf/actor.hpp"
#include "caf/actor_clock.hpp"
#include "caf/byte.hpp"
#include "caf/detail/net_export.hpp"
#include "caf/fwd.hpp"
#include "caf/intrusive/drr_queue.hpp"
......
......@@ -18,7 +18,6 @@
#pragma once
#include "caf/byte.hpp"
#include "caf/detail/net_export.hpp"
#include "caf/net/fwd.hpp"
#include "caf/span.hpp"
......
......@@ -24,7 +24,6 @@
#include "caf/actor_system_config.hpp"
#include "caf/binary_deserializer.hpp"
#include "caf/binary_serializer.hpp"
#include "caf/byte.hpp"
#include "caf/defaults.hpp"
#include "caf/detail/network_order.hpp"
#include "caf/detail/parse.hpp"
......
......@@ -18,7 +18,6 @@
#include "caf/net/endpoint_manager.hpp"
#include "caf/byte.hpp"
#include "caf/intrusive/inbox_result.hpp"
#include "caf/net/multiplexer.hpp"
#include "caf/sec.hpp"
......
......@@ -50,10 +50,6 @@
# define HOST_NAME_MAX 255
#endif
using std::pair;
using std::string;
using std::vector;
namespace caf::net::ip {
namespace {
......@@ -91,9 +87,8 @@ void for_each_adapter(F f, bool is_link_local = false) {
CAF_LOG_ERROR("failed to get adapter addresses buffer length");
return;
}
auto adapters = adapters_ptr{reinterpret_cast<IP_ADAPTER_ADDRESSES*>(
::malloc(len)),
free};
auto adapters = adapters_ptr{
reinterpret_cast<IP_ADAPTER_ADDRESSES*>(::malloc(len)), free};
if (!adapters) {
CAF_LOG_ERROR("malloc failed");
return;
......
......@@ -24,7 +24,6 @@
#include <vector>
#include "caf/byte.hpp"
#include "caf/forwarding_actor_proxy.hpp"
#include "caf/net/basp/connection_state.hpp"
#include "caf/net/basp/constants.hpp"
......
......@@ -25,7 +25,6 @@
#include "caf/binary_deserializer.hpp"
#include "caf/binary_serializer.hpp"
#include "caf/byte.hpp"
#include "caf/detail/scope_guard.hpp"
#include "caf/make_actor.hpp"
#include "caf/net/actor_proxy_impl.hpp"
......
......@@ -25,7 +25,6 @@
#include <new>
#include <tuple>
#include <vector>
#include "caf/byte.hpp"
#include "caf/net/socket_manager.hpp"
......
......@@ -25,7 +25,6 @@
#include <vector>
#include "caf/byte.hpp"
#include "caf/net/backend/test.hpp"
#include "caf/net/basp/connection_state.hpp"
#include "caf/net/basp/constants.hpp"
......
......@@ -23,8 +23,6 @@
#include "caf/net/test/host_fixture.hpp"
#include "caf/test/dsl.hpp"
#include <vector>
#include "caf/binary_deserializer.hpp"
#include "caf/binary_serializer.hpp"
#include "caf/byte.hpp"
......@@ -75,8 +73,7 @@ class string_application {
public:
using header_type = string_application_header;
string_application(byte_buffer_ptr buf)
: buf_(std::move(buf)) {
string_application(byte_buffer_ptr buf) : buf_(std::move(buf)) {
// nop
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment