Remove vconf key for CPS 2.1b_release accepted/tizen_2.1/20130425.035116 submit/tizen_2.1/20130424.231611
authorJune Kim <sena06.kim@samsung.com>
Tue, 16 Apr 2013 02:18:54 +0000 (11:18 +0900)
committerJune Kim <sena06.kim@samsung.com>
Tue, 16 Apr 2013 07:17:38 +0000 (16:17 +0900)
Change-Id: Ie7fed3d8a1352da03d0a2fd8f9396df6bd1726a6

location/manager/location-cps.c
packaging/libslp-location.spec

index 109ea61..0da9c40 100644 (file)
@@ -508,21 +508,7 @@ location_cps_get_last_position (LocationCps *self,
                LocationAccuracy **accuracy)
 {
        LOCATION_LOGD("location_cps_get_last_position");
-
-       LocationCpsPrivate *priv = GET_PRIVATE(self);
-       g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
-
-       int ret = LOCATION_ERROR_NONE;
-       LocationVelocity *_velocity = NULL;
-
-       LocModCpsOps ops = priv->mod->ops;
-       g_return_val_if_fail (priv->mod->handler, LOCATION_ERROR_NOT_AVAILABLE);
-       g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
-
-       ret = ops.get_last_position (priv->mod->handler, position, &_velocity, accuracy);
-       if (_velocity) location_velocity_free(_velocity);
-
-       return ret;
+       return LOCATION_ERROR_NOT_SUPPORTED;
 }
 
 static int
@@ -532,15 +518,7 @@ location_cps_get_last_position_ext (LocationCps *self,
                LocationAccuracy **accuracy)
 {
        LOCATION_LOGD("location_cps_get_last_position_ext");
-
-       LocationCpsPrivate *priv = GET_PRIVATE(self);
-       g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
-
-       LocModCpsOps ops = priv->mod->ops;
-       g_return_val_if_fail (priv->mod->handler, LOCATION_ERROR_NOT_AVAILABLE);
-       g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
-
-       return ops.get_last_position (priv->mod->handler, position, velocity, accuracy);
+       return LOCATION_ERROR_NOT_SUPPORTED;
 }
 
 static int
index 14fda51..57975ec 100755 (executable)
@@ -63,16 +63,9 @@ vconftool set -t double db/location/last/wps/Altitude "0.0" -f
 vconftool set -t double db/location/last/wps/HorAccuracy "0.0" -f
 vconftool set -t double db/location/last/wps/Speed "0.0" -f
 vconftool set -t double db/location/last/wps/Direction "0.0" -f
-vconftool set -t int db/location/last/cps/Timestamp "0" -f
-vconftool set -t double db/location/last/cps/Latitude "0.0" -f
-vconftool set -t double db/location/last/cps/Longitude "0.0" -f
-vconftool set -t double db/location/last/cps/Altitude "0.0" -f
-vconftool set -t double db/location/last/cps/HorAccuracy "0.0" -f
 vconftool set -t int db/location/setting/GpsEnabled "0" -g 6514 -f
 vconftool set -t int db/location/setting/AgpsEnabled "0" -g 6514 -f
 vconftool set -t int db/location/setting/NetworkEnabled "0" -g 6514 -f
-vconftool set -t int db/location/setting/SensorEnabled "0" -g 6514 -f
-
 
 %postun -p /sbin/ldconfig