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
2e1e2f4c
Commit
2e1e2f4c
authored
Jan 18, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
e1181789
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
libcaf_core/src/behavior_impl.cpp
libcaf_core/src/behavior_impl.cpp
+3
-9
No files found.
libcaf_core/src/behavior_impl.cpp
View file @
2e1e2f4c
...
...
@@ -28,18 +28,18 @@ namespace {
class
combinator
final
:
public
behavior_impl
{
public:
bhvr_invoke_result
invoke
(
message
&
arg
)
{
bhvr_invoke_result
invoke
(
message
&
arg
)
override
{
auto
res
=
first
->
invoke
(
arg
);
return
res
?
res
:
second
->
invoke
(
arg
);
}
void
handle_timeout
()
{
void
handle_timeout
()
override
{
// the second behavior overrides the timeout handling of
// first behavior
return
second
->
handle_timeout
();
}
pointer
copy
(
const
generic_timeout_definition
&
tdef
)
const
{
pointer
copy
(
const
generic_timeout_definition
&
tdef
)
const
override
{
return
new
combinator
(
first
,
second
->
copy
(
tdef
));
}
...
...
@@ -50,12 +50,6 @@ public:
// nop
}
protected:
match_case
**
get_cases
(
size_t
&
)
{
// never called
return
nullptr
;
}
private:
pointer
first
;
pointer
second
;
...
...
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