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
472c25d9
Commit
472c25d9
authored
Mar 03, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
de5c1d85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
libcaf_core/caf/stream_scatterer.hpp
libcaf_core/caf/stream_scatterer.hpp
+0
-7
libcaf_core/src/stream_scatterer.cpp
libcaf_core/src/stream_scatterer.cpp
+0
-14
No files found.
libcaf_core/caf/stream_scatterer.hpp
View file @
472c25d9
...
@@ -73,13 +73,6 @@ public:
...
@@ -73,13 +73,6 @@ public:
/// Returns the path associated to `slots` or `nullptr`.
/// Returns the path associated to `slots` or `nullptr`.
path_ptr
path
(
stream_slot
slots
)
noexcept
;
path_ptr
path
(
stream_slot
slots
)
noexcept
;
/// Returns the stored state for `x` if `x` is a known path and associated to
/// `sid`, otherwise `nullptr`.
path_ptr
path_at
(
size_t
index
)
noexcept
;
/// Removes a path from the scatterer and returns it.
path_unique_ptr
take_path_at
(
size_t
index
)
noexcept
;
/// Returns `true` if there is no data pending and no unacknowledged batch on
/// Returns `true` if there is no data pending and no unacknowledged batch on
/// any path.
/// any path.
bool
clean
()
const
noexcept
;
bool
clean
()
const
noexcept
;
...
...
libcaf_core/src/stream_scatterer.cpp
View file @
472c25d9
...
@@ -71,20 +71,6 @@ pointer stream_scatterer::path(stream_slot slot) noexcept {
...
@@ -71,20 +71,6 @@ pointer stream_scatterer::path(stream_slot slot) noexcept {
return
i
!=
paths_
.
end
()
?
i
->
second
.
get
()
:
nullptr
;
return
i
!=
paths_
.
end
()
?
i
->
second
.
get
()
:
nullptr
;
}
}
pointer
stream_scatterer
::
path_at
(
size_t
index
)
noexcept
{
CAF_ASSERT
(
paths_
.
size
()
<
index
);
return
(
paths_
.
container
())[
index
].
second
.
get
();
}
unique_pointer
stream_scatterer
::
take_path_at
(
size_t
index
)
noexcept
{
CAF_ASSERT
(
paths_
.
size
()
<
index
);
unique_pointer
result
;
auto
i
=
paths_
.
begin
()
+
index
;
result
.
swap
(
i
->
second
);
paths_
.
erase
(
i
);
return
result
;
}
bool
stream_scatterer
::
clean
()
const
noexcept
{
bool
stream_scatterer
::
clean
()
const
noexcept
{
auto
pred
=
[](
const
map_type
::
value_type
&
kvp
)
{
auto
pred
=
[](
const
map_type
::
value_type
&
kvp
)
{
auto
&
p
=
*
kvp
.
second
;
auto
&
p
=
*
kvp
.
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