From: Alexander Ebert Date: Thu, 29 May 2014 10:49:45 +0000 (+0200) Subject: Removed removeLabels() in favor of setLabels() X-Git-Tag: 2.1.0_Alpha_1~786^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88a11ec13ef2c33770386540f5d9bc8a8df9a783;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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. *