From f137bd39f7bbd5e42941784bba53ee78887677b8 Mon Sep 17 00:00:00 2001 From: jorianvo Date: Thu, 18 Jun 2015 11:39:39 +0200 Subject: [PATCH] Remove function endsWidth as it is not needed anymore It is replaced by the try catch statement for commit b30bc08 --- lib/log.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/log.php b/lib/log.php index d480ab2..180b713 100755 --- a/lib/log.php +++ b/lib/log.php @@ -74,12 +74,6 @@ private static function IpToCountry($ip) { $country = "Unknown"; } - // This function will check if $haystack ends with $needle, if so it will return true, else false - // substr compares $haystack from offset -strlen($needle) (thus from the end of the string) - // up to the end of $haystack - // Originally found at http://theoryapp.com/string-startswith-and-endswith-in-php/ - private static function endsWith($haystack, $needle) { - return substr_compare($haystack, $needle, -strlen($needle)) === 0; return $country; } }