From cfe73699cfa0b708d88e9a0ffa5a3bdf5a116eeb Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Tue, 21 Nov 2023 18:05:29 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B06967=20Deprecate=20DBDeleteTracked=5FInt?= =?UTF-8?q?ernal=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmdbabstract.class.inc.php | 5 ++++- core/cmdbobject.class.inc.php | 12 +----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 5718cb1fa..6daccf162 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -4659,7 +4659,10 @@ HTML; return $oDeletionPlan; } - protected function DBDeleteTracked_Internal(&$oDeletionPlan = null) + /** + * @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 */ diff --git a/core/cmdbobject.class.inc.php b/core/cmdbobject.class.inc.php index 4e7f66206..b9df6d05f 100644 --- a/core/cmdbobject.class.inc.php +++ b/core/cmdbobject.class.inc.php @@ -480,17 +480,7 @@ abstract class CMDBObject extends DBObject } /** - * @param null $oDeletionPlan - * - * @return \DeletionPlan|null - * @throws \ArchivedObjectException - * @throws \CoreCannotSaveObjectException - * @throws \CoreException - * @throws \CoreUnexpectedValue - * @throws \DeleteException - * @throws \MySQLException - * @throws \MySQLHasGoneAwayException - * @throws \OQLException + * @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) {