From f7d2520a9623b02c158ff231297d1ac14a123661 Mon Sep 17 00:00:00 2001 From: June Kim Date: Tue, 16 Apr 2013 11:18:54 +0900 Subject: [PATCH] Remove vconf key for CPS Change-Id: Ie7fed3d8a1352da03d0a2fd8f9396df6bd1726a6 --- location/manager/location-cps.c | 26 ++------------------------ packaging/libslp-location.spec | 7 ------- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/location/manager/location-cps.c b/location/manager/location-cps.c index 109ea61..0da9c40 100644 --- a/location/manager/location-cps.c +++ b/location/manager/location-cps.c @@ -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 diff --git a/packaging/libslp-location.spec b/packaging/libslp-location.spec index 14fda51..57975ec 100755 --- a/packaging/libslp-location.spec +++ b/packaging/libslp-location.spec @@ -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 -- 2.7.4