From e277a672169514796bb98ee92397d012aef8ea97 Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Fri, 2 Dec 2016 13:11:49 +0900 Subject: [PATCH] code clean up Change-Id: Id870ed449465147fb412997f9bf9d7ac284ee6c5 Signed-off-by: kj7.sung --- location/manager/location-common-util.c | 36 +++++++++++++++---------------- location/manager/location-hybrid-mobile.c | 22 ------------------- location/manager/location.c | 1 - 3 files changed, 18 insertions(+), 41 deletions(-) diff --git a/location/manager/location-common-util.c b/location/manager/location-common-util.c index 2a7a538..7b96871 100644 --- a/location/manager/location-common-util.c +++ b/location/manager/location-common-util.c @@ -288,24 +288,24 @@ 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; + 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); diff --git a/location/manager/location-hybrid-mobile.c b/location/manager/location-hybrid-mobile.c index d3461fe..b196be3 100755 --- a/location/manager/location-hybrid-mobile.c +++ b/location/manager/location-hybrid-mobile.c @@ -132,28 +132,6 @@ hybrid_get_update_method(LocationHybridPrivate *priv) return 0; } -#if 0 -static LocationObject * -hybrid_get_current_object(LocationHybridPrivate *priv) -{ - LocationMethod method = hybrid_get_current_method(priv); - - LocationObject *obj = NULL; - switch (method) { - case LOCATION_METHOD_GPS: - obj = priv->gps; - break; - case LOCATION_METHOD_WPS: - obj = priv->wps; - break; - default: - break; - } - - return obj; -} -#endif - static gboolean /* True : Receive more accurate info. False : Receive less accurate info */ hybrid_compare_g_type_method(LocationHybridPrivate *priv, GType g_type) { diff --git a/location/manager/location.c b/location/manager/location.c index da8f8ba..1911083 100755 --- a/location/manager/location.c +++ b/location/manager/location.c @@ -42,7 +42,6 @@ #define LOCATION_PRIVILEGE "http://tizen.org/privilege/location" #define LOCATION_ENABLE_PRIVILEGE "http://tizen.org/privilege/location.enable" -#define HYBRID 2 typedef struct _LocationSetting { LocationSettingCb callback; -- 2.7.4