From b092b1b1d9cdb8645fc2a7e667d2f6ae6577bbf4 Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Mon, 17 Jul 2017 14:14:05 +0900 Subject: [PATCH] Remove unused parameter Change-Id: Iffced2f390d99c1b416128daf8b6907379a7a822 Signed-off-by: kj7.sung --- location/manager/location-hybrid-mobile.c | 8 ++++---- location/manager/location.c | 6 +++--- location/manager/location.h | 4 ++-- packaging/liblbs-location.spec | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/location/manager/location-hybrid-mobile.c b/location/manager/location-hybrid-mobile.c index 54e0630..146038b 100644 --- a/location/manager/location-hybrid-mobile.c +++ b/location/manager/location-hybrid-mobile.c @@ -544,14 +544,14 @@ location_hybrid_finalize(GObject *gobject) g_signal_handlers_disconnect_by_func(priv->gps, G_CALLBACK(hybrid_service_disabled), gobject); g_signal_handlers_disconnect_by_func(priv->gps, G_CALLBACK(hybrid_service_updated), gobject); g_signal_handlers_disconnect_by_func(priv->gps, G_CALLBACK(hybrid_location_updated), gobject); - location_free(priv->gps, TRUE); + location_free(priv->gps); } if (priv->wps) { g_signal_handlers_disconnect_by_func(priv->wps, G_CALLBACK(hybrid_service_enabled), gobject); g_signal_handlers_disconnect_by_func(priv->wps, G_CALLBACK(hybrid_service_disabled), gobject); g_signal_handlers_disconnect_by_func(priv->wps, G_CALLBACK(hybrid_service_updated), gobject); g_signal_handlers_disconnect_by_func(priv->wps, G_CALLBACK(hybrid_location_updated), gobject); - location_free(priv->wps, TRUE); + location_free(priv->wps); } if (priv->boundary_list) { @@ -1174,8 +1174,8 @@ location_hybrid_init(LocationHybrid *self) priv->pos_timer = 0; priv->vel_timer = 0; - if (location_is_supported_method(LOCATION_METHOD_GPS)) priv->gps = location_new(LOCATION_METHOD_GPS, TRUE); - if (location_is_supported_method(LOCATION_METHOD_WPS)) priv->wps = location_new(LOCATION_METHOD_WPS, TRUE); + if (location_is_supported_method(LOCATION_METHOD_GPS)) priv->gps = location_new(LOCATION_METHOD_GPS); + if (location_is_supported_method(LOCATION_METHOD_WPS)) priv->wps = location_new(LOCATION_METHOD_WPS); if (priv->gps) { g_signal_connect(priv->gps, "service-enabled", G_CALLBACK(hybrid_service_enabled), self); diff --git a/location/manager/location.c b/location/manager/location.c index a994b79..caca551 100644 --- a/location/manager/location.c +++ b/location/manager/location.c @@ -115,10 +115,10 @@ int location_init(void) } EXPORT_API LocationObject * -location_new(LocationMethod method, gboolean multi_handle) +location_new(LocationMethod method) { LocationObject *self = NULL; - LOCATION_LOGD("method : %d, multi_handle[%d]", method, multi_handle); + LOCATION_LOGD("method : %d", method); switch (method) { case LOCATION_METHOD_HYBRID: @@ -145,7 +145,7 @@ location_new(LocationMethod method, gboolean multi_handle) } EXPORT_API int -location_free(LocationObject *obj, gboolean multi_handle) +location_free(LocationObject *obj) { g_return_val_if_fail(obj, LOCATION_ERROR_PARAMETER); g_object_unref(obj); diff --git a/location/manager/location.h b/location/manager/location.h index b9e1055..a59ceb6 100644 --- a/location/manager/location.h +++ b/location/manager/location.h @@ -69,7 +69,7 @@ int location_init(void); * @retval NULL if error occured * @see location_free */ -LocationObject *location_new(LocationMethod method, gboolean multi_handle); +LocationObject *location_new(LocationMethod method); /** * @brief Free memory of given #LocationObject. @@ -81,7 +81,7 @@ LocationObject *location_new(LocationMethod method, gboolean multi_handle); * @retval 0 Success. * Please refer #LocationError for more information. */ -int location_free(LocationObject *obj, gboolean multi_handle); +int location_free(LocationObject *obj); /** * @brief Start the location service by using given #LocationObject. diff --git a/packaging/liblbs-location.spec b/packaging/liblbs-location.spec index 2c8b8c9..85b1bd6 100755 --- a/packaging/liblbs-location.spec +++ b/packaging/liblbs-location.spec @@ -1,6 +1,6 @@ Name: liblbs-location Summary: Location Based Service Library -Version: 1.4.0 +Version: 1.4.1 Release: 1 Group: Location/Libraries License: Apache-2.0 -- 2.7.4