Skip to content

Commit

Permalink
Dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed May 20, 2013
1 parent b5dd9e2 commit 5a251b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
13 changes: 0 additions & 13 deletions libraries/List_Database.class.php
Expand Up @@ -229,19 +229,6 @@ public function getDefault()
return $this->getEmpty();
}

/**
* returns a part of the items
*
* @param integer $offset
* @param integer $count
*
* @return array some items
*/
public function getLimitedItems($offset, $count)
{
return array_slice($this->getArrayCopy(), $offset, $count);
}

/**
* this is just a backup, if all is fine this can be deleted later
*
Expand Down
12 changes: 0 additions & 12 deletions test/classes/PMA_List_Database_test.php
Expand Up @@ -55,18 +55,6 @@ public function testExists()
$this->assertEquals(true, $arr->exists('single_db'));
}

public function testLimitedItems()
{
$arr = new PMA_List_Database;
$this->assertEquals(array('single_db'), $arr->getLimitedItems(0, 1));
}

public function testLimitedItems_empty()
{
$arr = new PMA_List_Database;
$this->assertEquals(array(), $arr->getLimitedItems(1, 1));
}

public function testHtmlOptions()
{
$arr = new PMA_List_Database;
Expand Down

0 comments on commit 5a251b8

Please sign in to comment.