Remove unused parameter scan_item_type 86/144586/1
authorHaejeong Kim <backto.kim@samsung.com>
Thu, 17 Aug 2017 07:41:50 +0000 (16:41 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Thu, 17 Aug 2017 07:41:50 +0000 (16:41 +0900)
Change-Id: Idf859416c6d3a5911ed8bed5a3475e26f94b4394

include/dcm_svc_internal.h
src/dcm_svc_db.c

index d9b99c3e56bdd40d7af5857cfef482a988f32893..209b881d6af10652fcba394b56c9031f767ad136 100755 (executable)
@@ -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 {
index 334b5d09841b6f6e8c99d0fc1e00ab62c168ca34..f1a22a99b7efaedbaef07d3b58161f8afa36c408 100755 (executable)
@@ -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);