From b24a359b3647e8cc21c62249c2bdc80a7b4dbf60 Mon Sep 17 00:00:00 2001 From: Anne-Cath Date: Tue, 29 Jul 2025 11:39:54 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06982=20-=20Remove=20\cmdbAbstractObject:?= =?UTF-8?q?:DBDeleteTracked=5FInternal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmdbabstract.class.inc.php | 19 ------------------- core/cmdbobject.class.inc.php | 10 ---------- 2 files changed, 29 deletions(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index eff21c951..ed8bfaf7f 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -4668,25 +4668,6 @@ HTML; parent::PostDeleteActions(); } - /** - * @deprecated 3.1.1 3.2.0 N°6967 We will have only one DBDelete method in the future - */ - protected function DBDeleteTracked_Internal(&$oDeletionPlan = null) - { - // Invoke extensions before the deletion (the deletion will do some cleanup and we might loose some information - /** @var \iApplicationObjectExtension $oExtensionInstance */ - foreach(MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance) - { - $sExtensionClass = get_class($oExtensionInstance); - $this->LogCRUDDebug(__METHOD__, "Calling $sExtensionClass::OnDBDelete()"); - $oKPI = new ExecutionKPI(); - $oExtensionInstance->OnDBDelete($this, self::GetCurrentChange()); - $oKPI->ComputeStatsForExtension($oExtensionInstance, 'OnDBDelete'); - } - - return parent::DBDeleteTracked_Internal($oDeletionPlan); - } - public function IsModified() { if (parent::IsModified()) diff --git a/core/cmdbobject.class.inc.php b/core/cmdbobject.class.inc.php index 0c8452a1a..aba28e3e5 100644 --- a/core/cmdbobject.class.inc.php +++ b/core/cmdbobject.class.inc.php @@ -461,16 +461,6 @@ abstract class CMDBObject extends DBObject return $oDeletionPlan; } - /** - * @deprecated 3.1.1 3.2.0 N°6967 We will have only one DBDelete method in the future - */ - protected function DBDeleteTracked_Internal(&$oDeletionPlan = null) - { - $ret = parent::DBDelete($oDeletionPlan); - - return $ret; - } - public function DBArchive() { // Note: do the job anyway, so as to repair any DB discrepancy