From cf14a07a4bd4eca159ae3a1db5063677a1d3edb8 Mon Sep 17 00:00:00 2001 From: Aleksey Loginov Date: Tue, 26 Mar 2024 20:35:18 +0300 Subject: [PATCH] fix dynamic (#547) --- src/rpp/rpp/observables/dynamic_observable.hpp | 3 --- src/rpp/rpp/observables/observable.hpp | 3 --- src/rpp/rpp/observers/dynamic_observer.hpp | 3 --- src/rpp/rpp/observers/observer.hpp | 6 ------ 4 files changed, 15 deletions(-) diff --git a/src/rpp/rpp/observables/dynamic_observable.hpp b/src/rpp/rpp/observables/dynamic_observable.hpp index 8ea2f741b..f0e384007 100644 --- a/src/rpp/rpp/observables/dynamic_observable.hpp +++ b/src/rpp/rpp/observables/dynamic_observable.hpp @@ -47,9 +47,6 @@ namespace rpp::details::observables { } - dynamic_strategy(const dynamic_strategy&) = default; - dynamic_strategy(dynamic_strategy&&) noexcept = default; - template ObserverStrategy> void subscribe(observer&& observer) const { diff --git a/src/rpp/rpp/observables/observable.hpp b/src/rpp/rpp/observables/observable.hpp index 3b1b06c00..42b0d9d78 100644 --- a/src/rpp/rpp/observables/observable.hpp +++ b/src/rpp/rpp/observables/observable.hpp @@ -48,9 +48,6 @@ namespace rpp { } - observable(const observable&) = default; - observable(observable&&) noexcept = default; - /** * @brief Subscribes passed observer to emissions from this observable. * diff --git a/src/rpp/rpp/observers/dynamic_observer.hpp b/src/rpp/rpp/observers/dynamic_observer.hpp index 313dde3c2..faa454b23 100644 --- a/src/rpp/rpp/observers/dynamic_observer.hpp +++ b/src/rpp/rpp/observers/dynamic_observer.hpp @@ -50,9 +50,6 @@ namespace rpp::details::observers { } - dynamic_strategy(const dynamic_strategy&) = default; - dynamic_strategy(dynamic_strategy&&) noexcept = default; - void set_upstream(const disposable_wrapper& d) noexcept { m_vtable->set_upstream(m_forwarder.get(), d); } bool is_disposed() const noexcept { return m_vtable->is_disposed(m_forwarder.get()); } diff --git a/src/rpp/rpp/observers/observer.hpp b/src/rpp/rpp/observers/observer.hpp index f407e847b..3f109f885 100644 --- a/src/rpp/rpp/observers/observer.hpp +++ b/src/rpp/rpp/observers/observer.hpp @@ -36,9 +36,6 @@ namespace rpp::details { } - observer_impl(const observer_impl&) = default; - observer_impl(observer_impl&&) noexcept = default; - public: using preferred_disposable_strategy = observers::none_disposable_strategy; @@ -248,9 +245,6 @@ namespace rpp { } - observer(const observer&) = default; - observer(observer&&) noexcept = default; - dynamic_observer as_dynamic() && { return dynamic_observer{std::move(*this)};