Remove pinyin related code
[platform/core/api/media-content.git] / src / media_filter.c
index 7a7c13b..afb90d9 100755 (executable)
 
 #include <media_info_private.h>
 #include <media_util_private.h>
-#include <vconf.h>
-
-static bool __is_pinyin_needed(void)
-{
-       char *lang = NULL;
-       const char *china = "zh_CN";
-       const char *hongkong = "zh_HK";
-       int ret = FALSE;
-
-       /*Check CSC first*/
-       bool pinyin_support = FALSE;
-       media_svc_check_pinyin_support(&pinyin_support);
-       if (pinyin_support) {
-               /*Check Language Setting*/
-               lang = vconf_get_str(VCONFKEY_LANGSET);
-               content_retvm_if(lang == NULL, ret, "Fail to get string of language set");
-
-               if ((strncmp(china, lang, strlen(china)) == 0) ||
-                       (strncmp(hongkong, lang, strlen(hongkong)) == 0)) {
-                       ret = TRUE;
-               }
-
-               SAFE_FREE(lang);
-       }
-
-       return ret;
-}
 
 static const char *__get_order_str(media_content_order_e order_enum)
 {
@@ -65,10 +38,7 @@ static const char *__get_collate_str(media_content_collation_e collate_type)
        case MEDIA_CONTENT_COLLATE_RTRIM:
                return " COLLATE RTRIM ";
        case MEDIA_CONTENT_COLLATE_LOCALIZED:
-               if (__is_pinyin_needed())
-                       return " COLLATE NOCASE ";
-               else
-                       return " COLLATE localized ";
+               return " COLLATE localized ";
        default:
                return " ";
        }