summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-05-18 05:37:00 (GMT)
committerHaejeong Kim <backto.kim@samsung.com>2017-05-18 05:37:00 (GMT)
commit89ff1f92c8435282d5dafafccd0eedd9d2f06da4 (patch)
treec32b6aa753a18865ff24f0d6d5cb52c10bf06651 /src
parent9854665b61c46ea62b0d4654228327c470be4826 (diff)
downloadlibmedia-thumbnail-89ff1f92c8435282d5dafafccd0eedd9d2f06da4.zip
libmedia-thumbnail-89ff1f92c8435282d5dafafccd0eedd9d2f06da4.tar.gz
libmedia-thumbnail-89ff1f92c8435282d5dafafccd0eedd9d2f06da4.tar.bz2
Change-Id: Ie70b3af27edf6e7fe9a07458c94e679f71961741
Diffstat (limited to 'src')
-rwxr-xr-xsrc/include/util/media-thumb-db.h7
-rwxr-xr-xsrc/util/media-thumb-db.c33
2 files changed, 0 insertions, 40 deletions
diff --git a/src/include/util/media-thumb-db.h b/src/include/util/media-thumb-db.h
index 7f641c7..9a374b4 100755
--- a/src/include/util/media-thumb-db.h
+++ b/src/include/util/media-thumb-db.h
@@ -28,8 +28,6 @@
#define STRING_VALID(str) \
((str != NULL && strlen(str) > 0) ? TRUE : FALSE)
-#define MEDIA_DATABASE_NAME MEDIA_DB_NAME /* defined in media-util.h */
-
#define SELECT_PATH_FROM_UNEXTRACTED_THUMB_MEDIA "SELECT path from media where thumbnail_path is null and validity=1 and (media_type=0 or media_type=1);"
#define SELECT_PATH_FROM_UNEXTRACTED_THUMB_INTERNAL_MEDIA "SELECT path from media where thumbnail_path is null and validity=1 and (media_type=0 or media_type=1) and storage_type=0;"
#define SELECT_MEDIA_BY_PATH "SELECT thumbnail_path FROM media WHERE path='%q';"
@@ -45,11 +43,6 @@ int _media_thumb_db_connect(uid_t uid);
int _media_thumb_db_disconnect();
-int _media_thumb_get_thumb_from_db(const char *origin_path,
- char *thumb_path,
- int max_length,
- int *need_update_db);
-
int _media_thumb_get_thumb_from_db_with_size(const char *origin_path,
char *thumb_path,
int max_length,
diff --git a/src/util/media-thumb-db.c b/src/util/media-thumb-db.c
index 7ce5d31..540d31b 100755
--- a/src/util/media-thumb-db.c
+++ b/src/util/media-thumb-db.c
@@ -385,39 +385,6 @@ int _media_thumb_db_disconnect()
return err;
}
-int _media_thumb_get_thumb_from_db(const char *origin_path,
- char *thumb_path,
- int max_length,
- int *need_update_db)
-{
- int err = MS_MEDIA_ERR_NONE;
-
- //err = minfo_get_thumb_path(mb_svc_handle, origin_path, thumb_path, max_length);
- err = _media_thumb_get_thumb_path_from_db(db_handle, origin_path, thumb_path, max_length);
- if (err != MS_MEDIA_ERR_NONE) {
- thumb_warn("Original path doesn't exist in DB");
- return err;
- }
-
- if (strlen(thumb_path) == 0) {
- thumb_warn("thumb path doesn't exist in DB");
- *need_update_db = 1;
- return MS_MEDIA_ERR_INTERNAL;
- }
-
- thumb_dbg_slog("Thumb path in DB is %s", thumb_path);
-
- if (!g_file_test(thumb_path, G_FILE_TEST_EXISTS)) {
- thumb_warn("thumb path doesn't exist in file system");
- *need_update_db = 1;
- return MS_MEDIA_ERR_INTERNAL;
- } else {
- thumb_dbg("This thumb path already exist");
- }
-
- return MS_MEDIA_ERR_NONE;
-}
-
int _media_thumb_get_thumb_from_db_with_size(const char *origin_path,
char *thumb_path,
int max_length,