Skip to content

Commit

Permalink
Remove deprecated shared_ptr interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Jul 10, 2023
1 parent e021ae4 commit d960eaf
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 41 deletions.
8 changes: 0 additions & 8 deletions include/lsst/daf/base/PropertyList.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,9 @@ class LSST_EXPORT PropertyList : public PropertySet {
/// @copydoc PropertySet::copy
virtual void copy(std::string const& dest, PropertySet const & source, std::string const& name,
bool asScalar = false);
[[deprecated("Replaced by a non-shared_ptr overload. Will be removed after v25.")]]
virtual void copy(std::string const& dest, std::shared_ptr<PropertySet const> source,
std::string const& name, bool asScalar = false);
//@}

//@{
/// @copydoc PropertySet::combine
virtual void combine(PropertySet const & source);
[[deprecated("Replaced by a non-shared_ptr overload. Will be removed after v25.")]]
virtual void combine(std::shared_ptr<PropertySet const> source);
//@}

/// @copydoc PropertySet::remove
virtual void remove(std::string const& name);
Expand Down
8 changes: 0 additions & 8 deletions include/lsst/daf/base/PropertySet.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,7 @@ class LSST_EXPORT PropertySet {
*/
virtual void copy(std::string const& dest, PropertySet const & source, std::string const& name,
bool asScalar = false);
[[deprecated("Replaced by a non-shared_ptr overload. Will be removed after v25.")]]
virtual void copy(std::string const& dest, std::shared_ptr<PropertySet const> source,
std::string const& name, bool asScalar = false);
//@}

//@{
/**
* Append all value vectors from the \a source to their corresponding
* properties. Sets values if a property does not exist.
Expand All @@ -458,9 +453,6 @@ class LSST_EXPORT PropertySet {
* @warning May only partially combine the PropertySets if an exception occurs.
*/
virtual void combine(PropertySet const & source);
[[deprecated("Replaced by a non-shared_ptr overload. Will be removed after v25.")]]
virtual void combine(std::shared_ptr<PropertySet const> source);
//@}

/**
* Remove all values for a property name (possibly hierarchical). Does
Expand Down
12 changes: 0 additions & 12 deletions src/PropertyList.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,6 @@ void PropertyList::copy(std::string const& dest, PropertySet const & source, std
}
}

void PropertyList::copy(std::string const& dest, std::shared_ptr<PropertySet const> source,
std::string const& name, bool asScalar) {
if (source) {
copy(dest, *source, name, asScalar);
}
}

void PropertyList::combine(PropertySet const & source) {
auto const * pl = dynamic_cast<PropertyList const *>(&source);
Expand All @@ -221,12 +215,6 @@ void PropertyList::combine(PropertySet const & source) {
}
}

void PropertyList::combine(std::shared_ptr<PropertySet const> source) {
if (!source) {
return;
}
combine(*source);
}

void PropertyList::remove(std::string const& name) {
PropertySet::remove(name);
Expand Down
13 changes: 0 additions & 13 deletions src/PropertySet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,6 @@ void PropertySet::copy(
}
}

void PropertySet::copy(std::string const& dest, std::shared_ptr<PropertySet const> source,
std::string const& name, bool asScalar) {
if (!source) {
throw LSST_EXCEPT(pex::exceptions::InvalidParameterError, "Missing source");
}
copy(dest, *source, name, asScalar);
}

void PropertySet::combine(PropertySet const & source) {
std::vector<std::string> names = source.paramNames(false);
Expand All @@ -588,12 +581,6 @@ void PropertySet::combine(PropertySet const & source) {
}
}

void PropertySet::combine(std::shared_ptr<PropertySet const> source) {
if (!source) {
return;
}
combine(*source);
}

void PropertySet::remove(std::string const& name) {
std::string::size_type i = name.find('.');
Expand Down

0 comments on commit d960eaf

Please sign in to comment.