summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/helpers/filebin_helper.php15
-rw-r--r--application/test/tests/test_filebin_helper.php8
2 files changed, 0 insertions, 23 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index d42b2ad87..a62577065 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -46,21 +46,6 @@ function format_bytes($size)
}
}
-function even_odd($reset = false)
-{
- static $counter = 1;
-
- if ($reset) {
- $counter = 1;
- }
-
- if ($counter++%2 == 0) {
- return 'even';
- } else {
- return 'odd';
- }
-}
-
// Source: http://hu.php.net/manual/en/function.str-pad.php#71558
// This is a multibyte enabled str_pad
function mb_str_pad($ps_input, $pn_pad_length, $ps_pad_string = " ", $pn_pad_type = STR_PAD_RIGHT, $ps_encoding = NULL)
diff --git a/application/test/tests/test_filebin_helper.php b/application/test/tests/test_filebin_helper.php
index fb5df9f84..2f2895ddb 100644
--- a/application/test/tests/test_filebin_helper.php
+++ b/application/test/tests/test_filebin_helper.php
@@ -80,14 +80,6 @@ class test_filebin_helper extends \test\Test {
$this->t->is(format_bytes(1500*1024*1024*1024*1024*1024), "1500.00PiB", "1500.00PiB");
}
- public function test_even_odd()
- {
- $this->t->is(even_odd(true), "odd", "odd after reset");
- $this->t->is(even_odd(), "even", "even");
- $this->t->is(even_odd(), "odd", "odd");
- $this->t->is(even_odd(true), "odd", "odd after reset");
- }
-
public function test_mb_str_pad()
{
$this->t->is(mb_str_pad('test', 6), 'test ', 'Simple test with length=6');