Remove unused code
[platform/core/multimedia/libmm-utility.git] / common / mm_util_image.c
index 8f5b38d..ca8e297 100755 (executable)
@@ -81,11 +81,6 @@ int mm_image_create_image(unsigned int width, unsigned int height,
                mm_util_color_format_e color, const unsigned char *data, size_t size,
                mm_util_image_h *image)
 {
-       /* Just TEMP_DATA_SIZE has been used internally.
-        * It will be removed after removing deprecated CAPIs. */
-       if (size == TEMP_DATA_SIZE)
-               return __create_new_image(width, height, color, data, size, false, false, image);
-
        return __create_new_image(width, height, color, data, size, true, true, image);
 }
 
@@ -136,9 +131,6 @@ int mm_image_get_image(mm_util_image_h image, unsigned int *width,
        mm_image_info_s *_image = (mm_image_info_s *)image;
 
        mm_util_retvm_if(!IS_VALID_IMAGE(image), MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid image");
-       /* Just TEMP_DATA_SIZE has been used internally.
-        * It will be removed after removing deprecated CAPIs. */
-       mm_util_retvm_if(_image->size == TEMP_DATA_SIZE, MM_UTIL_ERROR_INVALID_PARAMETER, "Invalid size");
 
        if (width)
                *width = _image->width;