Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
e35497bd
Commit
e35497bd
authored
Feb 22, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant scribe_data ctors
parent
f0021a5f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
19 deletions
+4
-19
libcaf_io/caf/io/network/test_multiplexer.hpp
libcaf_io/caf/io/network/test_multiplexer.hpp
+4
-8
libcaf_io/src/test_multiplexer.cpp
libcaf_io/src/test_multiplexer.cpp
+0
-11
No files found.
libcaf_io/caf/io/network/test_multiplexer.hpp
View file @
e35497bd
...
...
@@ -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
{
...
...
libcaf_io/src/test_multiplexer.cpp
View file @
e35497bd
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment