summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2017-07-07 13:35:19 +0900
committerMinje Ahn <minje.ahn@samsung.com>2017-07-07 13:35:19 +0900
commit8003d8e5e3090490a38eef1387ab6c2587dd5b97 (patch)
tree738e85da6b8573a093dbb2a2a1941dcacc7eaddc
parent5b465316dc7b468f0e1edcfc845ece329f2d59d6 (diff)
downloadlibmedia-thumbnail-8003d8e5e3090490a38eef1387ab6c2587dd5b97.tar.gz
libmedia-thumbnail-8003d8e5e3090490a38eef1387ab6c2587dd5b97.tar.bz2
libmedia-thumbnail-8003d8e5e3090490a38eef1387ab6c2587dd5b97.zip
Remove unused parameter
Change-Id: I6c3640db37b9789181c9fa127bd083c5b2ec6aa6 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-xsrc/util/media-thumb-db.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util/media-thumb-db.c b/src/util/media-thumb-db.c
index 3332a18..e8a999d 100755
--- a/src/util/media-thumb-db.c
+++ b/src/util/media-thumb-db.c
@@ -92,8 +92,7 @@ int _media_thumb_get_thumb_path_wh_from_db(sqlite3 *handle,
return MS_MEDIA_ERR_NONE;
}
-int _media_thumb_update_thumb_path_wh_to_db(sqlite3 *handle,
- const char *origin_path,
+int _media_thumb_update_thumb_path_wh_to_db(const char *origin_path,
char *thumb_path,
int width,
int height,
@@ -102,10 +101,6 @@ int _media_thumb_update_thumb_path_wh_to_db(sqlite3 *handle,
int err = MS_MEDIA_ERR_NONE;
char *query_string = NULL;
- if (handle == NULL) {
- thumb_err("DB handle is NULL");
- return MS_MEDIA_ERR_INVALID_PARAMETER;
- }
if (!STRING_VALID(origin_path)) {
thumb_err("Invalid origin_path");
return MS_MEDIA_ERR_INVALID_PARAMETER;
@@ -203,7 +198,7 @@ int _media_thumb_update_db(const char *origin_path,
{
int err = MS_MEDIA_ERR_NONE;
- err = _media_thumb_update_thumb_path_wh_to_db(db_handle, origin_path, thumb_path, width, height, uid);
+ err = _media_thumb_update_thumb_path_wh_to_db(origin_path, thumb_path, width, height, uid);
if (err != MS_MEDIA_ERR_NONE) {
thumb_err("_media_thumb_update_wh_to_db (%s) failed: %d", origin_path, err);
return err;