Removed removeLabels() in favor of setLabels()
authorAlexander Ebert <ebert@woltlab.com>
Thu, 29 May 2014 10:49:45 +0000 (12:49 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 29 May 2014 10:49:45 +0000 (12:49 +0200)
In fact the setLabels() method explicitly support passing an empty list of label ids, effectively purging the previously set labels.

wcfsetup/install/files/lib/system/label/LabelHandler.class.php

index ac0e75cdc581d3cd3ccddcf7638a1a56928c0d9a..90a186b1da4fd983134eb2a796b1b80c533a8112 100644 (file)
@@ -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.
         *