diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 05518bb68..eff21c951 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -4575,28 +4575,6 @@ HTML; InlineImage::FinalizeInlineImages($this); } - /** - * @deprecated 3.1.1 3.2.0 N°6966 We will have only one DBClone method in the future - */ - protected function DBCloneTracked_Internal($newKey = null) - { - /** @var cmdbAbstractObject $oNewObj */ - $oNewObj = MetaModel::GetObject(get_class($this), parent::DBCloneTracked_Internal($newKey)); - - // Invoke extensions after insertion (the object must exist, have an id, etc.) - /** @var \iApplicationObjectExtension $oExtensionInstance */ - foreach(MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance) - { - $sExtensionClass = get_class($oExtensionInstance); - $this->LogCRUDDebug(__METHOD__, "Calling $sExtensionClass::OnDBInsert()"); - $oKPI = new ExecutionKPI(); - $oExtensionInstance->OnDBInsert($oNewObj, self::GetCurrentChange()); - $oKPI->ComputeStatsForExtension($oExtensionInstance, 'OnDBInsert'); - } - - return $oNewObj; - } - public function DBUpdate() { $this->LogCRUDEnter(__METHOD__); diff --git a/core/cmdbobject.class.inc.php b/core/cmdbobject.class.inc.php index 1106b0fd2..0c8452a1a 100644 --- a/core/cmdbobject.class.inc.php +++ b/core/cmdbobject.class.inc.php @@ -433,14 +433,6 @@ abstract class CMDBObject extends DBObject } public function DBClone($newKey = null) - { - return $this->DBCloneTracked_Internal(); - } - - /** - * @deprecated 3.1.1 3.2.0 N°6966 We will have only one DBClone method in the future - */ - protected function DBCloneTracked_Internal($newKey = null) { $newKey = parent::DBClone($newKey); $oClone = MetaModel::GetObject(get_class($this), $newKey);