Remove unused code about test application
[platform/core/api/location-manager.git] / src / locations.c
index cc42d6c..5fdab0d 100755 (executable)
@@ -245,10 +245,7 @@ static void __cb_zone_in(GObject *self, gpointer boundary, gpointer position, gp
        if (handle->user_cb[_LOCATIONS_EVENT_TYPE_BOUNDARY]) {
                LocationPosition *pos = (LocationPosition *) position;
                ((location_zone_changed_cb) handle->user_cb[_LOCATIONS_EVENT_TYPE_BOUNDARY])(LOCATIONS_BOUNDARY_IN,
-                                                                                                                                                                       pos->latitude, pos->longitude,
-                                                                                                                                                                       pos->altitude, pos->timestamp,
-                                                                                                                                                                       handle->user_data
-                                                                                                                                                                       [_LOCATIONS_EVENT_TYPE_BOUNDARY]);
+                                               pos->latitude, pos->longitude, pos->altitude, pos->timestamp, handle->user_data[_LOCATIONS_EVENT_TYPE_BOUNDARY]);
        }
 
        location_bounds_s *bounds;
@@ -274,10 +271,7 @@ static void __cb_zone_out(GObject *self, gpointer boundary, gpointer position, g
        if (handle->user_cb[_LOCATIONS_EVENT_TYPE_BOUNDARY]) {
                LocationPosition *pos = (LocationPosition *) position;
                ((location_zone_changed_cb) handle->user_cb[_LOCATIONS_EVENT_TYPE_BOUNDARY])(LOCATIONS_BOUNDARY_OUT,
-                                                                                                                                                                       pos->latitude, pos->longitude,
-                                                                                                                                                                       pos->altitude, pos->timestamp,
-                                                                                                                                                                       handle->user_data
-                                                                                                                                                                       [_LOCATIONS_EVENT_TYPE_BOUNDARY]);
+                                               pos->latitude, pos->longitude, pos->altitude, pos->timestamp, handle->user_data[_LOCATIONS_EVENT_TYPE_BOUNDARY]);
        }
 
        location_bounds_s *bounds;
@@ -522,7 +516,7 @@ EXPORT_API int location_manager_create(location_method_e method, location_manage
 
        memset(handle, 0, sizeof(location_manager_s));
 
-       handle->object = location_new(_method, FALSE);
+       handle->object = location_new(_method);
        if (handle->object == NULL) {
                //LCOV_EXCL_START
                LOCATIONS_LOGE("LOCATIONS_ERROR_SERVICE_NOT_AVAILABLE(0x%08x) : fail to location_new", LOCATIONS_ERROR_SERVICE_NOT_AVAILABLE);
@@ -566,7 +560,7 @@ EXPORT_API int location_manager_destroy(location_manager_h manager)
                handle->sig_id[_LOCATION_SIGNAL_ERROR_EMITTED] = 0;     //LCOV_EXCL_LINE
        }
 
-       int ret = location_free(handle->object, FALSE);
+       int ret = location_free(handle->object);
        if (ret != LOCATIONS_ERROR_NONE)
                return __convert_error_code(ret);       //LCOV_EXCL_LINE
 
@@ -729,7 +723,7 @@ EXPORT_API int location_manager_foreach_boundary(location_manager_h manager, loc
 
 EXPORT_API int location_manager_get_method(location_manager_h manager, location_method_e *method)
 {
-       LOCATIONS_LOGD("location_manager_get_method %d", method);
+       LOCATIONS_LOGD("location_manager_get_method");
        LOCATIONS_NOT_SUPPORTED_CHECK(__is_location_supported());
        LOCATIONS_NULL_ARG_CHECK(manager);
        LOCATIONS_NULL_ARG_CHECK(method);
@@ -749,13 +743,13 @@ EXPORT_API int location_manager_get_method(location_manager_h manager, location_
                break;
        case LOCATION_METHOD_WPS:
                *method = LOCATIONS_METHOD_WPS; //LCOV_EXCL_LINE
-               break;  //LCOV_EXCL_LINE
+               break;                                                  //LCOV_EXCL_LINE
        case LOCATION_METHOD_PASSIVE:
                *method = LOCATIONS_METHOD_PASSIVE;
                break;
        default: {
-               LOCATIONS_LOGE("[LOCATIONS_ERROR_INVALID_PARAMETER] method : %d ", method);     //LCOV_EXCL_LINE
-                       return LOCATIONS_ERROR_INVALID_PARAMETER;       //LCOV_EXCL_LINE
+               LOCATIONS_LOGE("[LOCATIONS_ERROR_INVALID_PARAMETER] invalid method");   //LCOV_EXCL_LINE
+                       return LOCATIONS_ERROR_INVALID_PARAMETER;                                                       //LCOV_EXCL_LINE
                }
        }
        return LOCATIONS_ERROR_NONE;