From 74c499b7b2698db88233fda98a8e304db21602b4 Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Thu, 17 Aug 2017 16:41:50 +0900 Subject: [PATCH] Remove unused parameter scan_item_type Change-Id: Idf859416c6d3a5911ed8bed5a3475e26f94b4394 --- include/dcm_svc_internal.h | 1 - src/dcm_svc_db.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/include/dcm_svc_internal.h b/include/dcm_svc_internal.h index d9b99c3..209b881 100755 --- a/include/dcm_svc_internal.h +++ b/include/dcm_svc_internal.h @@ -55,7 +55,6 @@ typedef struct { int image_orientation; char *mime_type; int face_count; - dcm_svc_type_e scan_item_type; } dcm_svc_item_s; typedef struct { diff --git a/src/dcm_svc_db.c b/src/dcm_svc_db.c index 334b5d0..f1a22a9 100755 --- a/src/dcm_svc_db.c +++ b/src/dcm_svc_db.c @@ -238,9 +238,6 @@ int dcm_svc_db_get_scan_image_info_by_path(const char *file_path, dcm_svc_item_s _item->mime_type = g_strdup((const char *)sqlite3_column_text(sql_stmt, 5)); _item->modified_time = sqlite3_column_int(sql_stmt, 6); - /* scan item retrieved by this function will be marked as SCAN_SINGLE */ - _item->scan_item_type = DCM_SCAN_ITEM_TYPE_SCAN_SINGLE; - DCM_SQLITE3_FINALIZE(sql_stmt); dcm_sec_debug("media uuid: [%s] file path: [%s]", _item->media_uuid, _item->file_path); @@ -288,9 +285,6 @@ int dcm_svc_db_get_scan_image_list_from_db(GList **image_list) scan_item->image_orientation = sqlite3_column_int(sql_stmt, 5); scan_item->mime_type = g_strdup((const char *)sqlite3_column_text(sql_stmt, 6)); - /* scan item retrieved by this function will be marked as SCAN_ALL */ - scan_item->scan_item_type = DCM_SCAN_ITEM_TYPE_SCAN_ALL; - *image_list = g_list_append(*image_list, scan_item); dcm_sec_debug("media uuid: [%s] file path: [%s]", scan_item->media_uuid, scan_item->file_path); -- 2.34.1