Skip to content

Commit b2549dd

Browse files
authored
Remove unused View::Clone method (gazebosim#1440)
Signed-off-by: Ashton Larkin <[email protected]>
1 parent f9f2bbd commit b2549dd

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

include/ignition/gazebo/detail/BaseView.hh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ class IGNITION_GAZEBO_VISIBLE BaseView
188188
/// \sa ToAddEntities
189189
public: void ClearToAddEntities();
190190

191-
public: virtual std::unique_ptr<BaseView> Clone() const = 0;
192-
193191
// TODO(adlarkin) make this a std::unordered_set for better performance.
194192
// We need to make sure nothing else depends on the ordered preserved by
195193
// std::set first

include/ignition/gazebo/detail/View.hh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ class View : public BaseView
106106
/// \brief Documentation inherited
107107
public: void Reset() override;
108108

109-
public: std::unique_ptr<BaseView> Clone() const override;
110-
111109
/// \brief A map of entities to their component data. Since tuples are defined
112110
/// at compile time, we need separate containers that have tuples for both
113111
/// non-const and const component pointers (calls to ECM::Each can have a
@@ -332,13 +330,6 @@ void View<ComponentTypeTs...>::Reset()
332330
this->invalidConstData.clear();
333331
this->missingCompTracker.clear();
334332
}
335-
336-
//////////////////////////////////////////////////
337-
template<typename ...ComponentTypeTs>
338-
std::unique_ptr<BaseView> View<ComponentTypeTs...>::Clone() const
339-
{
340-
return std::make_unique<View<ComponentTypeTs...>>(*this);
341-
}
342333
} // namespace detail
343334
} // namespace IGNITION_GAZEBO_VERSION_NAMESPACE
344335
} // namespace gazebo

0 commit comments

Comments
 (0)