Remove unused alias keyword 89/202289/2 accepted/tizen/unified/20190328.234707 submit/tizen/20190328.045207
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 27 Mar 2019 01:05:35 +0000 (10:05 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 27 Mar 2019 01:57:21 +0000 (10:57 +0900)
Change-Id: I0338509586a45dfbe956dfd1e8c7739dbe009a6d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
include/media_info_private.h
include_product/media_info_private.h
src/media_content.c

index 54fa7e3..271a1fc 100755 (executable)
@@ -376,9 +376,6 @@ typedef struct _media_content_cb_data {
 /* DB Table Alias */
 #define DB_TABLE_ALIAS_MEDIA                   "m"
 #define DB_TABLE_ALIAS_FOLDER                  "f"
-#define DB_TABLE_ALIAS_PLAYLIST                        "p"
-#define DB_TABLE_ALIAS_PLAYLIST_MAP    "pm"
-#define DB_TABLE_ALIAS_TAG                             "t"
 
 /* DB field for media */
 #define DB_FIELD_MEDIA_ID                                      "media_uuid"
index 9ae170c..c243793 100755 (executable)
@@ -478,9 +478,6 @@ typedef struct _media_content_scan_cb_data_v2 {
 /* DB Table Alias */
 #define DB_TABLE_ALIAS_MEDIA                   "m"
 #define DB_TABLE_ALIAS_FOLDER                  "f"
-#define DB_TABLE_ALIAS_PLAYLIST                        "p"
-#define DB_TABLE_ALIAS_PLAYLIST_MAP    "pm"
-#define DB_TABLE_ALIAS_TAG                             "t"
 
 /* DB field for media */
 #define DB_FIELD_MEDIA_ID                                      "media_uuid"
index 23523e8..fdb2f78 100755 (executable)
@@ -95,24 +95,24 @@ static media_content_attribute_info_s g_content_attrs_info[] = {
        {FOLDER_NAME_PINYIN,                    NULL,                                                                   DB_TABLE_ALIAS_FOLDER"."DB_FIELD_FOLDER_NAME_PINYIN},
 
        /* Playlist */
-       {MEDIA_PLAYLIST_ID,                             DB_FIELD_PLAYLIST_ID,                                           NULL},
-       {PLAYLIST_NAME,                                 DB_FIELD_PLAYLIST_NAME,                                 DB_TABLE_ALIAS_PLAYLIST"."DB_FIELD_PLAYLIST_NAME},
-       {PLAYLIST_MEMBER_ORDER,         DB_FIELD_PLAYLIST_MEMBER_ORDER,         DB_TABLE_ALIAS_PLAYLIST_MAP"."DB_FIELD_PLAYLIST_MEMBER_ORDER},
+       {MEDIA_PLAYLIST_ID,                             DB_FIELD_PLAYLIST_ID,                                   NULL},
+       {PLAYLIST_NAME,                                 DB_FIELD_PLAYLIST_NAME,                                 NULL},
+       {PLAYLIST_MEMBER_ORDER,         DB_FIELD_PLAYLIST_MEMBER_ORDER,                         NULL},
 
        /* Playlist View */
        {PLAYLIST_MEDIA_COUNT,                  DB_FIELD_PLAYLIST_MEDIA_COUNT,                  NULL},
 
        /* Tag */
-       {MEDIA_TAG_ID,                                  DB_FIELD_TAG_ID,                                                        NULL},
-       {TAG_NAME,                                              DB_FIELD_TAG_NAME,                                              DB_TABLE_ALIAS_TAG"."DB_FIELD_TAG_NAME},
+       {MEDIA_TAG_ID,                                  DB_FIELD_TAG_ID,                                                NULL},
+       {TAG_NAME,                                              DB_FIELD_TAG_NAME,                                              NULL},
 
        /* Tag View */
        {TAG_MEDIA_COUNT,                               DB_FIELD_TAG_MEDIA_COUNT,                               NULL},
 
        /* Bookmark */
-       {MEDIA_BOOKMARK_ID,                     DB_FIELD_BOOKMARK_ID,                                   NULL},
-       {BOOKMARK_MARKED_TIME,          DB_FIELD_BOOKMARK_MARKED_TIME,          NULL},
-       {BOOKMARK_NAME,                         DB_FIELD_BOOKMARK_NAME,                         NULL},
+       {MEDIA_BOOKMARK_ID,                     DB_FIELD_BOOKMARK_ID,                                           NULL},
+       {BOOKMARK_MARKED_TIME,          DB_FIELD_BOOKMARK_MARKED_TIME,                          NULL},
+       {BOOKMARK_NAME,                         DB_FIELD_BOOKMARK_NAME,                                         NULL},
 
        /* Storage */
        {MEDIA_STORAGE_ID,                              DB_FIELD_STORAGE_ID,                                    NULL},
@@ -289,6 +289,7 @@ attribute_h _content_get_attirbute_handle(void)
 
 attribute_h _content_get_alias_attirbute_handle(void)
 {
+       /* This API use only folder query */
        return g_alias_attr_handle;
 }