summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJune Kim <sena06.kim@samsung.com>2013-04-16 11:18:54 +0900
committerJune Kim <sena06.kim@samsung.com>2013-04-16 16:17:38 +0900
commitf7d2520a9623b02c158ff231297d1ac14a123661 (patch)
treef9f4c4172556414e8e181fbef41a51c4a1bcd0ec
parent94a103e07a552475421c17276efb77d8fa4e0660 (diff)
downloadlibslp-location-f7d2520a9623b02c158ff231297d1ac14a123661.tar.gz
libslp-location-f7d2520a9623b02c158ff231297d1ac14a123661.tar.bz2
libslp-location-f7d2520a9623b02c158ff231297d1ac14a123661.zip
Change-Id: Ie7fed3d8a1352da03d0a2fd8f9396df6bd1726a6
-rw-r--r--location/manager/location-cps.c26
-rwxr-xr-xpackaging/libslp-location.spec7
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