From e7555f04c826e65e59b7e6ff7f3858b7d94f5b73 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 01 六月 2021 17:29:49 +0800 Subject: [PATCH] trivial. --- box/center.cpp | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-) diff --git a/box/center.cpp b/box/center.cpp index 0fdfa33..86ad999 100644 --- a/box/center.cpp +++ b/box/center.cpp @@ -45,18 +45,6 @@ } } -Handler Combine(const Handler &h1, const Handler &h2) -{ - return [h1, h2](ShmSocket &socket, bhome_msg::MsgI &msg, bhome_msg::BHMsgHead &head) { - return h1(socket, msg, head) || h2(socket, msg, head); - }; -} -template <class... H> -Handler Combine(const Handler &h0, const Handler &h1, const Handler &h2, const H &...rest) -{ - return Combine(Combine(h0, h1), h2, rest...); -} - #define CASE_ON_MSG_TYPE(MsgTag) \ case kMsgType##MsgTag: \ Dispatch<Msg##MsgTag>( \ -- Gitblit v1.8.0