Commit e35497bd authored by Dominik Charousset's avatar Dominik Charousset

Remove redundant scribe_data ctors

parent f0021a5f
...@@ -173,14 +173,10 @@ private: ...@@ -173,14 +173,10 @@ private:
intrusive_ptr<scribe> ptr; intrusive_ptr<scribe> ptr;
bool ack_writes; bool ack_writes;
// Creates a mock-only scribe. // Allows creating an entangled scribes where the input of this scribe is
scribe_data(); // the output of another scribe and vice versa.
scribe_data(shared_buffer_type input = std::make_shared<buffer_type>(),
// Creates an entangled scribe where the input of this scribe is shared_buffer_type output = std::make_shared<buffer_type>());
// output of another scribe and vice versa.
scribe_data(shared_buffer_type input, shared_buffer_type output);
scribe_data(const scribe_data&);
}; };
struct doorman_data { struct doorman_data {
......
...@@ -28,12 +28,6 @@ namespace caf { ...@@ -28,12 +28,6 @@ namespace caf {
namespace io { namespace io {
namespace network { namespace network {
test_multiplexer::scribe_data::scribe_data()
: scribe_data(std::make_shared<buffer_type>(),
std::make_shared<buffer_type>()) {
// nop
}
test_multiplexer::scribe_data::scribe_data(shared_buffer_type input, test_multiplexer::scribe_data::scribe_data(shared_buffer_type input,
shared_buffer_type output) shared_buffer_type output)
: vn_buf_ptr(std::move(input)), : vn_buf_ptr(std::move(input)),
...@@ -46,11 +40,6 @@ test_multiplexer::scribe_data::scribe_data(shared_buffer_type input, ...@@ -46,11 +40,6 @@ test_multiplexer::scribe_data::scribe_data(shared_buffer_type input,
// nop // nop
} }
test_multiplexer::scribe_data::scribe_data(const scribe_data& other)
: scribe_data(other.vn_buf_ptr, other.wr_buf_ptr) {
// nop
}
test_multiplexer::test_multiplexer(actor_system* sys) : multiplexer(sys) { test_multiplexer::test_multiplexer(actor_system* sys) : multiplexer(sys) {
CAF_ASSERT(sys != nullptr); CAF_ASSERT(sys != nullptr);
} }
......
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