Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove deprecated ArrayList::getRange(), use limit() instead

  • Loading branch information...
commit a2bd378d468b1bc789b0a394b03e9a13d85c7b2f 1 parent 7042d87
@halkyon halkyon authored
Showing with 0 additions and 13 deletions.
  1. +0 −13 model/ArrayList.php
View
13 model/ArrayList.php
@@ -118,19 +118,6 @@ public function toNestedArray() {
* @param int $length
* @return ArrayList
*/
- public function getRange($offset, $length) {
- Deprecation::notice("3.0", 'getRange($offset, $length) is deprecated. Use limit($length, $offset) instead.'
- . ' Note the new argument order.');
- return $this->limit($length, $offset);
- }
-
- /**
- * Get a sub-range of this dataobjectset as an array
- *
- * @param int $offset
- * @param int $length
- * @return ArrayList
- */
public function limit($length, $offset = 0) {
return new ArrayList(array_slice($this->items, $offset, $length));
}
Please sign in to comment.
Something went wrong with that request. Please try again.