From f2c5fff7c824f5e5e8a654f2df33bdaffb36af69 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 15 Jun 2016 18:30:07 +0000 Subject: [PATCH] Core: CoWork now accepts Function only, callback per operator git-svn-id: svn://ultimatepp.org/upp/trunk@9946 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/CoWork.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/uppsrc/Core/CoWork.h b/uppsrc/Core/CoWork.h index cffa24d84..5cb4d35ec 100644 --- a/uppsrc/Core/CoWork.h +++ b/uppsrc/Core/CoWork.h @@ -46,10 +46,8 @@ public: public: void Do(Function&& fn); - void Do(const Callback& cb) { Do(Function(clone(cb))); } void Do(const Function& fn) { Do(clone(fn)); } - CoWork& operator&(const Callback& cb) { Do(cb); return *this; } CoWork& operator&(const Function& fn) { Do(fn); return *this; } CoWork& operator&(Function&& fn) { Do(pick(fn)); return *this; }