Remove vconf key for CPS
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 109ea61022016e382b166b82af61198ae33275f3..0da9c4001140cad274aca9c77595d268ac41b08b 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 14fda51bba385d00171869da8611da170236c377..57975ecdef0b899cd161b3703665bd1d714d38a2 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