Commit 2e1e2f4c authored by Dominik Charousset's avatar Dominik Charousset

Remove dead code

parent e1181789
...@@ -28,18 +28,18 @@ namespace { ...@@ -28,18 +28,18 @@ namespace {
class combinator final : public behavior_impl { class combinator final : public behavior_impl {
public: public:
bhvr_invoke_result invoke(message& arg) { bhvr_invoke_result invoke(message& arg) override {
auto res = first->invoke(arg); auto res = first->invoke(arg);
return res ? res : second->invoke(arg); return res ? res : second->invoke(arg);
} }
void handle_timeout() { void handle_timeout() override {
// the second behavior overrides the timeout handling of // the second behavior overrides the timeout handling of
// first behavior // first behavior
return second->handle_timeout(); 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)); return new combinator(first, second->copy(tdef));
} }
...@@ -50,12 +50,6 @@ public: ...@@ -50,12 +50,6 @@ public:
// nop // nop
} }
protected:
match_case** get_cases(size_t&) {
// never called
return nullptr;
}
private: private:
pointer first; pointer first;
pointer second; pointer second;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment