[ACR-1309] Remove deprecated API 04/192604/1 accepted/tizen/unified/20181122.060340 submit/tizen/20181122.022626
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 7 Nov 2018 02:10:21 +0000 (11:10 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 7 Nov 2018 02:10:21 +0000 (11:10 +0900)
Change-Id: Icdfd28d25f901ddb4c87c66082a23a2958b98b9d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
include/thumbnail_util.h
src/thumbnail_util.c
test/thumbnail_util_test.c

index c0338be..1773eee 100755 (executable)
@@ -156,24 +156,6 @@ int thumbnail_util_set_size(thumbnail_h thumb, int width, int height) TIZEN_DEPR
 int thumbnail_util_cancel(thumbnail_h thumb, const char *request_id) TIZEN_DEPRECATED_API;
 
 /**
- * @deprecated Deprecated since 4.0.
- * @brief Cancels all thumbnail extraction requests associated with the given thumbnail info handle.
- * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
- * @remarks If there is no item you want to cancel, this function return MEDIA_CONTENT_ERROR_INVALID_OPERATION
- *
- * @param[in] thumb The media thumbnail info handle
- *
- * @return @c 0 on success, otherwise a negative error value
- *
- * @retval #THUMBNAIL_UTIL_ERROR_NONE              Successful
- * @retval #THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @pre It is available before thumbnail_extracted_cb() is called.
- * @see thumbnail_util_extract()
- */
-int thumbnail_util_cancel_all(thumbnail_h thumb) TIZEN_DEPRECATED_API;
-
-/**
  * @deprecated Deprecated since 5.0.
  * @brief Destroys thumbnail info handle.
  * @details The function frees all resources related to the thumbnail info handle. This handle
index 329b759..a5ebca3 100755 (executable)
@@ -225,23 +225,6 @@ int thumbnail_util_cancel(thumbnail_h thumb, const char *request_id)
        return ret;
 }
 
-int thumbnail_util_cancel_all(thumbnail_h thumb)
-{
-       thumbnail_util_warn("DEPRECATION WARNING: thumbnail_util_cancel_all() is deprecated and will be removed from next release.");
-       int ret = THUMBNAIL_UTIL_ERROR_NONE;
-       thumbnail_s *_thumb = (thumbnail_s *)thumb;
-
-       if (_thumb != NULL) {
-               ret = thumbnail_request_cancel_all();
-       } else {
-               thumbnail_util_error("INVALID_PARAMETER(0x%08x)", THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER);
-               ret = THUMBNAIL_UTIL_ERROR_INVALID_PARAMETER;
-       }
-
-       return ret;
-}
-
-
 int thumbnail_util_destroy(thumbnail_h thumb)
 {
        thumbnail_util_warn("DEPRECATION WARNING: thumbnail_util_destroy() is deprecated and will be removed from next release.");
index abbf343..546b13e 100755 (executable)
@@ -105,14 +105,7 @@ gboolean cancel_all(gpointer data)
        int ret = THUMBNAIL_UTIL_ERROR_NONE;
        thumbnail_h _media_thumb;
        thumbnail_util_create(&_media_thumb);
-#if 0
-       ret = thumbnail_util_cancel_all(_media_thumb);
 
-       if (ret == THUMBNAIL_UTIL_ERROR_NONE)
-               thumbnail_util_debug("thumbnail_util_cancel_all is success");
-       else
-               thumbnail_util_error("thumbnail_util_cancel_all is failed");
-#else
        int i, num;
        num = atoi(g_id);
        char *req_str = NULL;
@@ -124,7 +117,6 @@ gboolean cancel_all(gpointer data)
                else
                        thumbnail_util_error("thumbnail_util_cancel[%d] is failed", i);
        }
-#endif
        thumbnail_util_destroy(_media_thumb);
 
        return false;