plural() was never used

This commit is contained in:
Shish 2012-03-10 02:13:50 +00:00
parent 91393e003a
commit bab3145fbc
2 changed files with 2 additions and 11 deletions

View File

@ -13,8 +13,8 @@ class TagHistoryTest extends ShimmieWebTestCase {
$this->click("Revert To"); $this->click("Revert To");
$this->assert_title("Image $image_id: pbx"); $this->assert_title("Image $image_id: pbx");
$this->get_page("tag_history"); $this->get_page("tag_history/all/1");
$this->click("Global Tag History"); $this->assert_title("Global Tag History");
$this->delete_image($image_id); $this->delete_image($image_id);
$this->log_out(); $this->log_out();

View File

@ -172,15 +172,6 @@ function isValidDate($date) {
return false; return false;
} }
/**
* Return a pluraliser if necessary
*
* @retval string
*/
function plural($num, $single_form="", $plural_form="s") {
return ($num == 1) ? $single_form : $plural_form;
}
/** /**
* Give a HTML string which shows an IP (if the user is allowed to see IPs), * Give a HTML string which shows an IP (if the user is allowed to see IPs),
* and a link to ban that IP (if the user is allowed to ban IPs) * and a link to ban that IP (if the user is allowed to ban IPs)