diff --git a/common/functions.php b/common/functions.php index f5b4ca396..cadda061b 100644 --- a/common/functions.php +++ b/common/functions.php @@ -497,21 +497,6 @@ function include_and_ignore_output($filename) return $result; } -/** - * Polyfill for hex2bin() which does not exist in PHP 5.3. - * - * @param string $hex The hexadecimal string to convert to binary - * @return string - */ -if (!function_exists('hex2bin')) -{ - function hex2bin($hex) - { - if (strlen($hex) % 2) $hex = '0' . $hex; - return pack('H*', $hex); - } -} - /** * Converts any value to either true or false. * Based on util.php