summaryrefslogtreecommitdiff
path: root/framework/Collections/TPriorityList.php
diff options
context:
space:
mode:
authorjavalizard <>2010-10-04 03:17:41 +0000
committerjavalizard <>2010-10-04 03:17:41 +0000
commit50ddd5e598fee58ef6841172fc0c02e4817eadc1 (patch)
tree4f09a4c6d2c8cdf732bdebf2680a1958c468dd28 /framework/Collections/TPriorityList.php
parentd9fb4b20d14b9f090fa3d7c77d6c3134ca386dc9 (diff)
#247 Removed one redundant function.
Diffstat (limited to 'framework/Collections/TPriorityList.php')
-rw-r--r--framework/Collections/TPriorityList.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/framework/Collections/TPriorityList.php b/framework/Collections/TPriorityList.php
index ebb90b91..1b7cff32 100644
--- a/framework/Collections/TPriorityList.php
+++ b/framework/Collections/TPriorityList.php
@@ -413,30 +413,6 @@ class TPriorityList extends TList
}
/**
- * Removes an item from a specific priority. The list will first search for the item
- * at the priority. The first item found will be removed from the priority.
- * @param mixed item to be removed.
- * @param numeric priority
- * @return integer the index within the priority at which the item is being removed
- * @throws TInvalidDataValueException If the item does not exist
- */
- public function removeFromPriority($item, $priority=null)
- {
- if($this->getReadOnly())
- throw new TInvalidOperationException('list_readonly',get_class($this));
-
- if($priority===null)
- $priority = $this->getDefaultPriority();
- $priority = (string)round(TPropertyValue::ensureFloat($priority), $this->_p);
-
- if(isset($this->_d[$priority]) && ($index=array_search($item,$this->_d[$priority],true))!==false) {
- $this->removeAtIndexInPriority($index, $priority);
- return $index;
- }
- throw new TInvalidDataValueException('list_item_inexistent');
- }
-
- /**
* Removes the item at a specific index within a priority. Override
* and call this method to insert your own functionality.
* @param integer index of item to remove within the priority.