Quellcode durchsuchen

ctkAbstractQObjectFactory - Remove unused code

Jean-Christophe Fillion-Robin vor 13 Jahren
Ursprung
Commit
05e0578ea4
2 geänderte Dateien mit 0 neuen und 20 gelöschten Zeilen
  1. 0 6
      Libs/Core/ctkAbstractQObjectFactory.h
  2. 0 14
      Libs/Core/ctkAbstractQObjectFactory.tpp

+ 0 - 6
Libs/Core/ctkAbstractQObjectFactory.h

@@ -38,12 +38,6 @@ public:
   explicit ctkAbstractQObjectFactory();
   virtual ~ctkAbstractQObjectFactory();
 
-  /// Create an instance of the object identified by \a itemKey
-  virtual BaseClassType * instantiate(const QString& itemKey);
-
-  /// Uninstanciate the object identified by \a itemKey
-  virtual void uninstantiate(const QString& itemKey);
-
   /// \brief Return a name allowing to uniquely identify the QObject
   /// By default, it return \a objectName obtained using staticMetaObject.className()
   virtual QString objectNameToKey(const QString& objectName);

+ 0 - 14
Libs/Core/ctkAbstractQObjectFactory.tpp

@@ -44,20 +44,6 @@ ctkAbstractQObjectFactory<BaseClassType>::~ctkAbstractQObjectFactory()
 
 //----------------------------------------------------------------------------
 template<typename BaseClassType>
-BaseClassType* ctkAbstractQObjectFactory<BaseClassType>::instantiate(const QString& itemKey)
-{
-  return this->ctkAbstractObjectFactory<BaseClassType>::instantiate(itemKey);
-}
-
-//----------------------------------------------------------------------------
-template<typename BaseClassType>
-void ctkAbstractQObjectFactory<BaseClassType>::uninstantiate(const QString& itemKey)
-{
-  this->ctkAbstractObjectFactory<BaseClassType>::uninstantiate(itemKey);
-}
-
-//----------------------------------------------------------------------------
-template<typename BaseClassType>
 QString ctkAbstractQObjectFactory<BaseClassType>::objectNameToKey(const QString& objectName)
 {
   return objectName;