Remove unused to_delayed_closure functions.
This commit is contained in:
parent
04a7583bd0
commit
2cc8f34a7d
@ -55,7 +55,6 @@
|
||||
//
|
||||
//
|
||||
// create_immediate_closure(&ActorT::func, arg1, arg2, ..., argn).run(actor)
|
||||
// to_delayed_closure(std::move(immediate)).run(actor)
|
||||
|
||||
namespace td {
|
||||
template <class ActorT, class FunctionT, class... ArgsT>
|
||||
@ -92,7 +91,6 @@ template <class ActorT, class FunctionT, class... ArgsT>
|
||||
class DelayedClosure {
|
||||
public:
|
||||
using ActorType = ActorT;
|
||||
using Delayed = DelayedClosure<ActorT, FunctionT, ArgsT...>;
|
||||
|
||||
explicit DelayedClosure(ImmediateClosure<ActorT, FunctionT, ArgsT...> &&other) : args(std::move(other.args)) {
|
||||
}
|
||||
@ -130,16 +128,6 @@ class DelayedClosure {
|
||||
}
|
||||
};
|
||||
|
||||
template <class... ArgsT>
|
||||
typename ImmediateClosure<ArgsT...>::Delayed to_delayed_closure(ImmediateClosure<ArgsT...> &&other) {
|
||||
return typename ImmediateClosure<ArgsT...>::Delayed(std::move(other));
|
||||
}
|
||||
|
||||
template <class... ArgsT>
|
||||
DelayedClosure<ArgsT...> to_delayed_closure(DelayedClosure<ArgsT...> &&other) {
|
||||
return std::move(other);
|
||||
}
|
||||
|
||||
template <class ActorT, class ResultT, class... DestArgsT, class... SrcArgsT>
|
||||
auto create_delayed_closure(ResultT (ActorT::*func)(DestArgsT...), SrcArgsT &&...args) {
|
||||
return DelayedClosure<ActorT, ResultT (ActorT::*)(DestArgsT...), SrcArgsT &&...>(func,
|
||||
|
Loading…
x
Reference in New Issue
Block a user