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
e0e56d69
Commit
e0e56d69
authored
Jul 10, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
485f9d80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
54 deletions
+0
-54
libcaf_io/test/remote_streams.cpp
libcaf_io/test/remote_streams.cpp
+0
-54
No files found.
libcaf_io/test/remote_streams.cpp
View file @
e0e56d69
...
@@ -39,60 +39,6 @@ using namespace caf::io;
...
@@ -39,60 +39,6 @@ using namespace caf::io;
namespace
{
namespace
{
behavior
drop_all
(
event_based_actor
*
self
)
{
return
{
[
=
](
stream
<
int
>&
in
,
std
::
string
&
fname
)
{
CAF_CHECK_EQUAL
(
fname
,
"test.txt"
);
return
self
->
add_sink
(
// input stream
in
,
// initialize state
[](
unit_t
&
)
{
// nop
},
// processing step
[](
unit_t
&
,
int
)
{
// nop
},
// cleanup and produce void "result"
[](
unit_t
&
)
{
CAF_LOG_INFO
(
"drop_all done"
);
}
);
}
};
}
void
streamer_without_result
(
event_based_actor
*
self
,
const
actor
&
dest
)
{
CAF_LOG_INFO
(
"streamer_without_result initialized"
);
using
buf
=
std
::
deque
<
int
>
;
self
->
new_stream
(
// destination of the stream
dest
,
// "file name" for the next stage
std
::
make_tuple
(
"test.txt"
),
// initialize state
[
&
](
buf
&
xs
)
{
xs
=
buf
{
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
},
// get next element
[
=
](
buf
&
xs
,
downstream
<
int
>&
out
,
size_t
num
)
{
auto
n
=
std
::
min
(
num
,
xs
.
size
());
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
out
.
push
(
xs
[
i
]);
xs
.
erase
(
xs
.
begin
(),
xs
.
begin
()
+
static_cast
<
ptrdiff_t
>
(
n
));
},
// check whether we reached the end
[
=
](
const
buf
&
xs
)
{
return
xs
.
empty
();
},
// handle result of the stream
[
=
](
expected
<
void
>
)
{
// nop
}
);
}
class
remoting_config
:
public
actor_system_config
{
class
remoting_config
:
public
actor_system_config
{
public:
public:
remoting_config
()
{
remoting_config
()
{
...
...
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