Code cleanup

removing unused code
This commit is contained in:
George Litos 2015-06-03 13:54:45 +03:00
parent 674c9d4846
commit a141fb50c4

View file

@ -332,19 +332,14 @@ function addURLParameter($urlParams, $paramName, $paramValue) {
function useNormAndUp () { function useNormAndUp () {
global $config; global $config;
return $config ['cops_normalized_search'] == "1"; return $config ['cops_normalized_search'] == "1";
// return extension_loaded('mbstring') &&
// extension_loaded('intl') &&
// class_exists("Normalizer", $autoload = false) &&
// $config ['cops_normalized_search'] == "1";
} }
function normalizeUtf8String( $s) function normalizeUtf8String( $s) {
{
include_once 'transliteration.php'; include_once 'transliteration.php';
return _transliteration_process($s); return _transliteration_process($s);
} }
function normAndUp ($s) { function normAndUp ($s) {
return mb_strtoupper (normalizeUtf8String($s), 'UTF-8'); return mb_strtoupper (normalizeUtf8String($s), 'UTF-8');
} }