Sfoglia il codice sorgente

cleanup - thanks to @Kerndog73 (see #267)

Michele Caini 6 anni fa
parent
commit
10995de7bd
1 ha cambiato i file con 0 aggiunte e 7 eliminazioni
  1. 0 7
      src/entt/signal/sigh.hpp

+ 0 - 7
src/entt/signal/sigh.hpp

@@ -30,8 +30,6 @@ struct invoker;
 
 template<typename Ret, typename... Args, typename Collector>
 struct invoker<Ret(Args...), Collector> {
-    virtual ~invoker() = default;
-
     bool invoke(Collector &collector, const delegate<Ret(Args...)> &delegate, Args... args) const {
         return collector(delegate(args...));
     }
@@ -40,8 +38,6 @@ struct invoker<Ret(Args...), Collector> {
 
 template<typename... Args, typename Collector>
 struct invoker<void(Args...), Collector> {
-    virtual ~invoker() = default;
-
     bool invoke(Collector &, const delegate<void(Args...)> &delegate, Args... args) const {
         return (delegate(args...), true);
     }
@@ -130,9 +126,6 @@ class sink<Ret(Args...)> {
     template<typename, typename>
     friend struct sigh;
 
-    template<typename Type>
-    Type * payload_type(Ret(*)(Type *, Args...));
-
     sink(std::vector<delegate<Ret(Args...)>> *ref) ENTT_NOEXCEPT
         : calls{ref}
     {}