Remove tv profile dependency for cynara
[platform/core/location/lbs-location.git] / location / manager / location-gps.c
index 1247d1c..8df47ae 100644 (file)
@@ -448,8 +448,7 @@ static int location_gps_start_batch(LocationGps *self)
 #endif
 
 #if defined(TIZEN_DEVICE)
-               if (_get_tizen_profile() != TIZEN_PROFILE_TV)
-                       return  __set_sensor_batch(self, priv->batch_interval);
+               return  __set_sensor_batch(self, priv->batch_interval);
 #endif
        }
 
@@ -468,27 +467,23 @@ static int location_gps_stop_batch(LocationGps *self)
        int ret = LOCATION_ERROR_NONE;
 
 #if defined(TIZEN_DEVICE)
-       if (_get_tizen_profile() != TIZEN_PROFILE_TV) {
-               ret = sensor_listener_stop(priv->sensor_listener);
-               LOC_IF_FAIL(ret, _E, "Fail to listener_stop [%s]", err_msg(LOCATION_ERROR_NOT_AVAILABLE));
+       ret = sensor_listener_stop(priv->sensor_listener);
+       LOC_IF_FAIL(ret, _E, "Fail to listener_stop [%s]", err_msg(LOCATION_ERROR_NOT_AVAILABLE));
 
-               ret = sensor_listener_unset_event_cb(priv->sensor_listener);
-               LOC_IF_FAIL_LOG(ret, _E, "Fail to listener_unset_event_cb [%s]", err_msg(ret));
+       ret = sensor_listener_unset_event_cb(priv->sensor_listener);
+       LOC_IF_FAIL_LOG(ret, _E, "Fail to listener_unset_event_cb [%s]", err_msg(ret));
 
-               ret = sensor_destroy_listener(priv->sensor_listener);
-               LOC_IF_FAIL_LOG(ret, _E, "Fail to destroy_listener [%s]", err_msg(ret));
-       } else {
+       ret = sensor_destroy_listener(priv->sensor_listener);
+       LOC_IF_FAIL_LOG(ret, _E, "Fail to destroy_listener [%s]", err_msg(ret));
 #else
-       if (1) {
-#endif
-               if (__get_started(self) == TRUE) {
-                       __set_started(self, FALSE);
-                       ret = priv->mod->ops.stop_batch(priv->mod->handler);
-                       LOC_IF_FAIL_LOG(ret, _E, "Failed to stop_batch [%s]", err_msg(ret));
-               } else {
-                       return LOCATION_ERROR_NONE;
-               }
+       if (__get_started(self) == TRUE) {
+               __set_started(self, FALSE);
+               ret = priv->mod->ops.stop_batch(priv->mod->handler);
+               LOC_IF_FAIL_LOG(ret, _E, "Failed to stop_batch [%s]", err_msg(ret));
+       } else {
+               return LOCATION_ERROR_NONE;
        }
+#endif
 
        __reset_pos_data_from_priv(priv);
 
@@ -1168,10 +1163,8 @@ static void location_gps_init(LocationGps *self)
        priv->loc_timeout = 0;
 
 #if defined(TIZEN_DEVICE)
-       if (_get_tizen_profile() != TIZEN_PROFILE_TV) {
-               priv->sensor = NULL;
-               priv->sensor_listener = NULL;
-       }
+       priv->sensor = NULL;
+       priv->sensor_listener = NULL;
 #endif
 
        priv->app_type = location_get_app_type(NULL);