From 8735944c1597d317716357eb2561222161b875d4 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 9 Dec 2012 12:28:59 +0100 Subject: Simplify copy construction and assignment of observers. --- cells-impl.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cells-impl.hpp b/cells-impl.hpp index deae2fd..1ee3eac 100644 --- a/cells-impl.hpp +++ b/cells-impl.hpp @@ -72,12 +72,6 @@ namespace cells { } inline void observer::reset_dependents(std::list> const& new_dependents) { - for (auto const& dependent : dependents) { - std::shared_ptr sdependent = dependent.lock(); - if (sdependent) { - remove_dependent(*sdependent); - } - } dependents = new_dependents; } -- cgit v1.2.3