From 88a11ec13ef2c33770386540f5d9bc8a8df9a783 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 29 May 2014 12:49:45 +0200 Subject: [PATCH] Removed removeLabels() in favor of setLabels() In fact the setLabels() method explicitly support passing an empty list of label ids, effectively purging the previously set labels. --- .../files/lib/system/label/LabelHandler.class.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php index ac0e75cdc5..90a186b1da 100644 --- a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php @@ -267,18 +267,6 @@ class LabelHandler extends SingletonFactory { return $data; } - /** - * Removes all previously assigned labels. - * - * @param integer $objectTypeID - * @param integer $objectID - * @param boolean $validatePermissions - * @see \wcf\system\label\LabelHandler::setLabel() - */ - public function removeLabels($objectTypeID, $objectID, $validatePermissions = true) { - $this->setLabel(array(), $objectTypeID, $objectID, $validatePermissions); - } - /** * Returns given label groups by id. * -- 2.20.1