diff --git a/src/libraries/JANA/JFactoryT.h b/src/libraries/JANA/JFactoryT.h index 8ac878f5e..bf95ada57 100644 --- a/src/libraries/JANA/JFactoryT.h +++ b/src/libraries/JANA/JFactoryT.h @@ -25,24 +25,6 @@ class JFactoryT : public JFactory { using IteratorType = typename std::vector::const_iterator; using PairType = std::pair; - /// JFactoryT constructor requires a name and a tag. - /// Name should always be JTypeInfo::demangle(), tag is usually "". - JFactoryT(const std::string& aName, const std::string& aTag) __attribute__ ((deprecated)) : JFactory(aName, aTag) { - EnableGetAs(); - EnableGetAs( std::is_convertible() ); // Automatically add JObject if this can be converted to it -#if JANA2_HAVE_ROOT - EnableGetAs( std::is_convertible() ); // Automatically add TObject if this can be converted to it -#endif - } - - JFactoryT(const std::string& aName) __attribute__ ((deprecated)) : JFactory(aName, "") { - EnableGetAs(); - EnableGetAs( std::is_convertible() ); // Automatically add JObject if this can be converted to it -#if JANA2_HAVE_ROOT - EnableGetAs( std::is_convertible() ); // Automatically add TObject if this can be converted to it -#endif - } - JFactoryT() : JFactory(JTypeInfo::demangle(), ""){ EnableGetAs(); EnableGetAs( std::is_convertible() ); // Automatically add JObject if this can be converted to it