Skip to content

Commit

Permalink
Remove deprecated JFactoryT constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Sep 23, 2024
1 parent edbb47e commit b53688e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/libraries/JANA/JFactoryT.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,6 @@ class JFactoryT : public JFactory {
using IteratorType = typename std::vector<T*>::const_iterator;
using PairType = std::pair<IteratorType, IteratorType>;

/// JFactoryT constructor requires a name and a tag.
/// Name should always be JTypeInfo::demangle<T>(), tag is usually "".
JFactoryT(const std::string& aName, const std::string& aTag) __attribute__ ((deprecated)) : JFactory(aName, aTag) {
EnableGetAs<T>();
EnableGetAs<JObject>( std::is_convertible<T,JObject>() ); // Automatically add JObject if this can be converted to it
#if JANA2_HAVE_ROOT
EnableGetAs<TObject>( std::is_convertible<T,TObject>() ); // Automatically add TObject if this can be converted to it
#endif
}

JFactoryT(const std::string& aName) __attribute__ ((deprecated)) : JFactory(aName, "") {
EnableGetAs<T>();
EnableGetAs<JObject>( std::is_convertible<T,JObject>() ); // Automatically add JObject if this can be converted to it
#if JANA2_HAVE_ROOT
EnableGetAs<TObject>( std::is_convertible<T,TObject>() ); // Automatically add TObject if this can be converted to it
#endif
}

JFactoryT() : JFactory(JTypeInfo::demangle<T>(), ""){
EnableGetAs<T>();
EnableGetAs<JObject>( std::is_convertible<T,JObject>() ); // Automatically add JObject if this can be converted to it
Expand Down

0 comments on commit b53688e

Please sign in to comment.