From f73580945dd83bf6dd00cdf1b16b35bfde1914cb Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 8 Apr 2017 21:57:34 +0900 Subject: [PATCH] Remove unnecessary polyfill for hex2bin() --- common/functions.php | 15 --------------- 1 file changed, 15 deletions(-) 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