Commit 499ddd20 authored by Jakob Otto's avatar Jakob Otto

Cleanup unused includes

parent 31402304
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#pragma once #pragma once
#include <vector>
#include "caf/logger.hpp" #include "caf/logger.hpp"
#include "caf/net/make_endpoint_manager.hpp" #include "caf/net/make_endpoint_manager.hpp"
#include "caf/net/socket.hpp" #include "caf/net/socket.hpp"
...@@ -77,10 +75,9 @@ public: ...@@ -77,10 +75,9 @@ public:
CAF_LOG_DEBUG("unable to get multiplexer from parent"); CAF_LOG_DEBUG("unable to get multiplexer from parent");
return false; return false;
} }
auto child = make_endpoint_manager(mpx, parent.system(), auto child = make_endpoint_manager(
stream_transport< mpx, parent.system(),
application_type>{*x, stream_transport<application_type>{*x, factory_.make()});
factory_.make()});
if (auto err = child->init()) if (auto err = child->init())
return false; return false;
return true; return true;
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "caf/actor.hpp" #include "caf/actor.hpp"
#include "caf/actor_clock.hpp" #include "caf/actor_clock.hpp"
#include "caf/byte.hpp"
#include "caf/detail/net_export.hpp" #include "caf/detail/net_export.hpp"
#include "caf/fwd.hpp" #include "caf/fwd.hpp"
#include "caf/intrusive/drr_queue.hpp" #include "caf/intrusive/drr_queue.hpp"
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#pragma once #pragma once
#include "caf/byte.hpp"
#include "caf/detail/net_export.hpp" #include "caf/detail/net_export.hpp"
#include "caf/net/fwd.hpp" #include "caf/net/fwd.hpp"
#include "caf/span.hpp" #include "caf/span.hpp"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "caf/actor_system_config.hpp" #include "caf/actor_system_config.hpp"
#include "caf/binary_deserializer.hpp" #include "caf/binary_deserializer.hpp"
#include "caf/binary_serializer.hpp" #include "caf/binary_serializer.hpp"
#include "caf/byte.hpp"
#include "caf/defaults.hpp" #include "caf/defaults.hpp"
#include "caf/detail/network_order.hpp" #include "caf/detail/network_order.hpp"
#include "caf/detail/parse.hpp" #include "caf/detail/parse.hpp"
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "caf/net/endpoint_manager.hpp" #include "caf/net/endpoint_manager.hpp"
#include "caf/byte.hpp"
#include "caf/intrusive/inbox_result.hpp" #include "caf/intrusive/inbox_result.hpp"
#include "caf/net/multiplexer.hpp" #include "caf/net/multiplexer.hpp"
#include "caf/sec.hpp" #include "caf/sec.hpp"
......
...@@ -50,10 +50,6 @@ ...@@ -50,10 +50,6 @@
# define HOST_NAME_MAX 255 # define HOST_NAME_MAX 255
#endif #endif
using std::pair;
using std::string;
using std::vector;
namespace caf::net::ip { namespace caf::net::ip {
namespace { namespace {
...@@ -91,9 +87,8 @@ void for_each_adapter(F f, bool is_link_local = false) { ...@@ -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"); CAF_LOG_ERROR("failed to get adapter addresses buffer length");
return; return;
} }
auto adapters = adapters_ptr{reinterpret_cast<IP_ADAPTER_ADDRESSES*>( auto adapters = adapters_ptr{
::malloc(len)), reinterpret_cast<IP_ADAPTER_ADDRESSES*>(::malloc(len)), free};
free};
if (!adapters) { if (!adapters) {
CAF_LOG_ERROR("malloc failed"); CAF_LOG_ERROR("malloc failed");
return; return;
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <vector> #include <vector>
#include "caf/byte.hpp"
#include "caf/forwarding_actor_proxy.hpp" #include "caf/forwarding_actor_proxy.hpp"
#include "caf/net/basp/connection_state.hpp" #include "caf/net/basp/connection_state.hpp"
#include "caf/net/basp/constants.hpp" #include "caf/net/basp/constants.hpp"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "caf/binary_deserializer.hpp" #include "caf/binary_deserializer.hpp"
#include "caf/binary_serializer.hpp" #include "caf/binary_serializer.hpp"
#include "caf/byte.hpp"
#include "caf/detail/scope_guard.hpp" #include "caf/detail/scope_guard.hpp"
#include "caf/make_actor.hpp" #include "caf/make_actor.hpp"
#include "caf/net/actor_proxy_impl.hpp" #include "caf/net/actor_proxy_impl.hpp"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <new> #include <new>
#include <tuple> #include <tuple>
#include <vector>
#include "caf/byte.hpp" #include "caf/byte.hpp"
#include "caf/net/socket_manager.hpp" #include "caf/net/socket_manager.hpp"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <vector> #include <vector>
#include "caf/byte.hpp"
#include "caf/net/backend/test.hpp" #include "caf/net/backend/test.hpp"
#include "caf/net/basp/connection_state.hpp" #include "caf/net/basp/connection_state.hpp"
#include "caf/net/basp/constants.hpp" #include "caf/net/basp/constants.hpp"
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include "caf/net/test/host_fixture.hpp" #include "caf/net/test/host_fixture.hpp"
#include "caf/test/dsl.hpp" #include "caf/test/dsl.hpp"
#include <vector>
#include "caf/binary_deserializer.hpp" #include "caf/binary_deserializer.hpp"
#include "caf/binary_serializer.hpp" #include "caf/binary_serializer.hpp"
#include "caf/byte.hpp" #include "caf/byte.hpp"
...@@ -75,8 +73,7 @@ class string_application { ...@@ -75,8 +73,7 @@ class string_application {
public: public:
using header_type = string_application_header; using header_type = string_application_header;
string_application(byte_buffer_ptr buf) string_application(byte_buffer_ptr buf) : buf_(std::move(buf)) {
: buf_(std::move(buf)) {
// nop // 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