diff --git a/include/ignition/gazebo/detail/BaseView.hh b/include/ignition/gazebo/detail/BaseView.hh index 7f08090b80..b426f01bb6 100644 --- a/include/ignition/gazebo/detail/BaseView.hh +++ b/include/ignition/gazebo/detail/BaseView.hh @@ -188,8 +188,6 @@ class IGNITION_GAZEBO_VISIBLE BaseView /// \sa ToAddEntities public: void ClearToAddEntities(); - public: virtual std::unique_ptr Clone() const = 0; - // TODO(adlarkin) make this a std::unordered_set for better performance. // We need to make sure nothing else depends on the ordered preserved by // std::set first diff --git a/include/ignition/gazebo/detail/View.hh b/include/ignition/gazebo/detail/View.hh index 23eccf7303..3972b3d079 100644 --- a/include/ignition/gazebo/detail/View.hh +++ b/include/ignition/gazebo/detail/View.hh @@ -106,8 +106,6 @@ class View : public BaseView /// \brief Documentation inherited public: void Reset() override; - public: std::unique_ptr Clone() const override; - /// \brief A map of entities to their component data. Since tuples are defined /// at compile time, we need separate containers that have tuples for both /// non-const and const component pointers (calls to ECM::Each can have a @@ -332,13 +330,6 @@ void View::Reset() this->invalidConstData.clear(); this->missingCompTracker.clear(); } - -////////////////////////////////////////////////// -template -std::unique_ptr View::Clone() const -{ - return std::make_unique>(*this); -} } // namespace detail } // namespace IGNITION_GAZEBO_VERSION_NAMESPACE } // namespace gazebo