code clean up 92/101692/2 accepted/tizen/common/20161202.233311 accepted/tizen/ivi/20161205.000214 accepted/tizen/mobile/20161205.000107 accepted/tizen/tv/20161205.000124 accepted/tizen/wearable/20161205.000135 submit/tizen/20161202.055356
authorkj7.sung <kj7.sung@samsung.com>
Fri, 2 Dec 2016 04:11:49 +0000 (13:11 +0900)
committerkj7.sung <kj7.sung@samsung.com>
Fri, 2 Dec 2016 04:18:58 +0000 (13:18 +0900)
Change-Id: Id870ed449465147fb412997f9bf9d7ac284ee6c5
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
location/manager/location-common-util.c
location/manager/location-hybrid-mobile.c
location/manager/location.c

index 2a7a538..7b96871 100644 (file)
@@ -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);
 
index d3461fe..b196be3 100755 (executable)
@@ -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)
 {
index da8f8ba..1911083 100755 (executable)
@@ -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;