Remove unused parameter 71/137671/1
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 7 Jul 2017 04:35:19 +0000 (13:35 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 7 Jul 2017 04:35:19 +0000 (13:35 +0900)
Change-Id: I6c3640db37b9789181c9fa127bd083c5b2ec6aa6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/util/media-thumb-db.c

index 3332a18..e8a999d 100755 (executable)
@@ -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;