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
42309315
Commit
42309315
authored
May 01, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
0229c9d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
libcaf_core/caf/stream_handler.hpp
libcaf_core/caf/stream_handler.hpp
+0
-7
libcaf_core/src/stream_handler.cpp
libcaf_core/src/stream_handler.cpp
+0
-11
No files found.
libcaf_core/caf/stream_handler.hpp
View file @
42309315
...
@@ -52,10 +52,6 @@ public:
...
@@ -52,10 +52,6 @@ public:
strong_actor_ptr
&
hdl
,
size_t
initial_demand
,
strong_actor_ptr
&
hdl
,
size_t
initial_demand
,
bool
redeployable
);
bool
redeployable
);
/// Handles ACK message from a downstream actor.
/// @pre `hdl != nullptr`
virtual
error
downstream_ack
(
strong_actor_ptr
&
hdl
,
int64_t
batch_id
);
/// Handles new demand from a downstream actor.
/// Handles new demand from a downstream actor.
/// @pre `hdl != nullptr`
/// @pre `hdl != nullptr`
/// @pre `new_demand > 0`
/// @pre `new_demand > 0`
...
@@ -79,9 +75,6 @@ public:
...
@@ -79,9 +75,6 @@ public:
/// Closes an upstream.
/// Closes an upstream.
virtual
error
close_upstream
(
strong_actor_ptr
&
hdl
);
virtual
error
close_upstream
(
strong_actor_ptr
&
hdl
);
/// Pull up to `n` new data items from upstream by sending a demand message.
virtual
error
pull
(
size_t
n
);
// -- handler for stream-wide events -----------------------------------------
// -- handler for stream-wide events -----------------------------------------
/// Shutdown the stream due to a fatal error.
/// Shutdown the stream due to a fatal error.
...
...
libcaf_core/src/stream_handler.cpp
View file @
42309315
...
@@ -42,12 +42,6 @@ error stream_handler::confirm_downstream(const strong_actor_ptr&,
...
@@ -42,12 +42,6 @@ error stream_handler::confirm_downstream(const strong_actor_ptr&,
return
sec
::
cannot_add_downstream
;
return
sec
::
cannot_add_downstream
;
}
}
error
stream_handler
::
downstream_ack
(
strong_actor_ptr
&
,
int64_t
)
{
CAF_LOG_ERROR
(
"Received downstream messages in "
"a stream marked as no-downstreams"
);
return
sec
::
invalid_downstream
;
}
error
stream_handler
::
downstream_demand
(
strong_actor_ptr
&
,
size_t
)
{
error
stream_handler
::
downstream_demand
(
strong_actor_ptr
&
,
size_t
)
{
CAF_LOG_ERROR
(
"Received downstream messages in "
CAF_LOG_ERROR
(
"Received downstream messages in "
"a stream marked as no-downstreams"
);
"a stream marked as no-downstreams"
);
...
@@ -78,11 +72,6 @@ error stream_handler::close_upstream(strong_actor_ptr&) {
...
@@ -78,11 +72,6 @@ error stream_handler::close_upstream(strong_actor_ptr&) {
return
sec
::
invalid_upstream
;
return
sec
::
invalid_upstream
;
}
}
error
stream_handler
::
pull
(
size_t
)
{
CAF_LOG_ERROR
(
"Cannot pull from a stream marked as no-upstreams"
);
return
sec
::
invalid_upstream
;
}
optional
<
abstract_downstream
&>
stream_handler
::
get_downstream
()
{
optional
<
abstract_downstream
&>
stream_handler
::
get_downstream
()
{
return
none
;
return
none
;
}
}
...
...
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