Remove unused parameter 43/139043/1 accepted/tizen/unified/20170718.174018 submit/tizen/20170717.080446
authorkj7.sung <kj7.sung@samsung.com>
Mon, 17 Jul 2017 05:14:05 +0000 (14:14 +0900)
committerkj7.sung <kj7.sung@samsung.com>
Mon, 17 Jul 2017 05:14:05 +0000 (14:14 +0900)
Change-Id: Iffced2f390d99c1b416128daf8b6907379a7a822
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
location/manager/location-hybrid-mobile.c
location/manager/location.c
location/manager/location.h
packaging/liblbs-location.spec

index 54e0630..146038b 100644 (file)
@@ -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);
index a994b79..caca551 100644 (file)
@@ -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);
index b9e1055..a59ceb6 100644 (file)
@@ -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.
index 2c8b8c9..85b1bd6 100755 (executable)
@@ -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