From: SooChan Lim Date: Tue, 15 Feb 2022 02:39:23 +0000 (+0900) Subject: remove the unused function X-Git-Tag: accepted/tizen/unified/20220216.175731~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dde22fc702ca8501728e4a8b958fec016d387242;p=platform%2Fcore%2Fapi%2Fefl-util.git remove the unused function The get_tizen_profile() does not used in the code. Change-Id: Ief021c79f26d92d7eaa6044bb8c8d0af76e4289b --- diff --git a/src/efl_util.c b/src/efl_util.c index 902b0db..a01896a 100644 --- a/src/efl_util.c +++ b/src/efl_util.c @@ -45,53 +45,6 @@ #undef LOG_TAG #endif -/* Determine Tizen profile at runtime */ -#include -typedef enum { - TIZEN_PROFILE_UNKNOWN = 0, - TIZEN_PROFILE_MOBILE = 0x1, - TIZEN_PROFILE_WEARABLE = 0x2, - TIZEN_PROFILE_TV = 0x4, - TIZEN_PROFILE_IVI = 0x8, - TIZEN_PROFILE_COMMON = 0x10, -} tizen_profile_t; -static tizen_profile_t profile = TIZEN_PROFILE_UNKNOWN; -static tizen_profile_t _get_tizen_profile() -{ - char *profileName; - system_info_get_platform_string("http://tizen.org/feature/profile", &profileName); - switch (*profileName) { - case 'm': - case 'M': - profile = TIZEN_PROFILE_MOBILE; - break; - case 'w': - case 'W': - profile = TIZEN_PROFILE_WEARABLE; - break; - case 't': - case 'T': - profile = TIZEN_PROFILE_TV; - break; - case 'i': - case 'I': - profile = TIZEN_PROFILE_IVI; - break; - default: // common or unknown ==> ALL ARE COMMON. - profile = TIZEN_PROFILE_COMMON; - } - free(profileName); - - return profile; -} -static inline tizen_profile_t get_tizen_profile() -{ - if (__builtin_expect(profile != TIZEN_PROFILE_UNKNOWN, 1)) - return profile; - return _get_tizen_profile(); -} - - #define LOG_TAG "TIZEN_N_EFL_UTIL" #define EFL_UTIL_INPUT_GENERATOR_DEFAULT_TIME_OUT 1000 #define EFL_UTIL_INPUT_GENERATOR_DEFAULT_DISPATCH_TIME_OUT 10