From: chakradhar pogiri Date: Wed, 23 Jun 2021 07:07:15 +0000 (+0530) Subject: removing dead code X-Git-Tag: accepted/tizen/6.5/unified/20211028.102431^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fcore%2Flocation%2Fgeofence-server.git removing dead code Change-Id: I6bd0fd7dec2003f643a9f42f1ff9fdee9ce268a9 --- diff --git a/module/module_geofence_server.c b/module/module_geofence_server.c index a4c9afb..2197801 100644 --- a/module/module_geofence_server.c +++ b/module/module_geofence_server.c @@ -243,10 +243,6 @@ EXPORT_API int get_geofences(void *handle, int place_id, int *fence_amount, int g_return_val_if_fail(fence_ids, GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER); g_return_val_if_fail(params, GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER); - if (!geofence_manager) { - *fence_amount = 0; - return GEOFENCE_MANAGER_ERROR_NONE; - } int index = 0; GVariantIter *iter = NULL; GVariantIter *iter_row = NULL; @@ -309,10 +305,6 @@ EXPORT_API int get_places(void *handle, int *place_amount, int **place_ids, plac g_return_val_if_fail(place_ids, GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER); g_return_val_if_fail(params, GEOFENCE_MANAGER_ERROR_INVALID_PARAMETER); - if (!geofence_manager) { - *place_amount = 0; - return GEOFENCE_MANAGER_ERROR_NONE; - } int index = 0; GVariantIter *iter = NULL; GVariantIter *iter_row = NULL;