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
540c120e
Commit
540c120e
authored
Jan 30, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
d162ba49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
libcaf_core/caf/match_expr.hpp
libcaf_core/caf/match_expr.hpp
+3
-28
No files found.
libcaf_core/caf/match_expr.hpp
View file @
540c120e
...
...
@@ -350,16 +350,12 @@ class match_expr {
template
<
class
T
,
class
...
Ts
>
match_expr
(
T
v
,
Ts
&&
...
vs
)
:
m_cases
(
std
::
move
(
v
),
std
::
forward
<
Ts
>
(
vs
)...)
{
init
();
// nop
}
match_expr
(
match_expr
&&
other
)
:
m_cases
(
std
::
move
(
other
.
m_cases
))
{
init
();
}
match_expr
(
match_expr
&&
other
)
=
default
;
match_expr
(
const
match_expr
&
other
)
:
m_cases
(
other
.
m_cases
)
{
init
();
}
match_expr
(
const
match_expr
&
other
)
=
default
;
result_type
operator
()(
const
message
&
tup
)
{
return
apply
(
tup
);
...
...
@@ -404,27 +400,6 @@ class match_expr {
using
cache_element
=
std
::
pair
<
const
std
::
type_info
*
,
uint64_t
>
;
std
::
vector
<
cache_element
>
m_cache
;
// ring buffer like access to m_cache
size_t
m_cache_begin
;
size_t
m_cache_end
;
cache_element
m_dummy
;
static
void
advance_
(
size_t
&
i
)
{
i
=
(
i
+
1
)
%
cache_size
;
}
void
init
()
{
m_dummy
.
second
=
std
::
numeric_limits
<
uint64_t
>::
max
();
m_cache
.
resize
(
cache_size
);
for
(
auto
&
entry
:
m_cache
)
{
entry
.
first
=
nullptr
;
}
m_cache_begin
=
m_cache_end
=
0
;
}
template
<
class
Msg
>
result_type
apply
(
Msg
&
msg
)
{
idx_token_type
idx_token
;
...
...
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