Commit e35497bd authored by Dominik Charousset's avatar Dominik Charousset

Remove redundant scribe_data ctors

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