From fc4c2591f058cb4996d128af059ba0ab793b6653 Mon Sep 17 00:00:00 2001 From: "jiyong.min" Date: Mon, 15 Oct 2018 08:24:31 +0900 Subject: [PATCH] Remove unused variables Change-Id: I6e394a71e37c4ad8dc3cdea3d38a72b2195683b6 --- include/image_util_private.h | 10 ---------- src/image_util_encode.c | 1 - 2 files changed, 11 deletions(-) diff --git a/include/image_util_private.h b/include/image_util_private.h index 43399b9..2c8b7f6 100755 --- a/include/image_util_private.h +++ b/include/image_util_private.h @@ -80,12 +80,6 @@ extern "C" #define _NOT_SUPPORTED_COLORSPACE (-1) -#define MODE_DECODE 1 -#define MODE_ENCODE 2 - -#define IS_DECODE_MODE(x) (x == MODE_DECODE) -#define IS_ENCODE_MODE(x) (x == MODE_ENCODE) - #define IMGCV_FUNC_NAME "mm_util_cv_extract_representative_color" #define PATH_MMUTIL_IMGCV_LIB PATH_LIBDIR"/libmmutil_imgcv.so" @@ -150,15 +144,12 @@ typedef struct { void *image_h; unsigned long width; unsigned long height; - unsigned int mode; int quality; image_util_png_compression_e compression; unsigned int current_buffer_count; unsigned int current_resolution_count; unsigned int current_delay_count; image_util_colorspace_e colorspace; - image_util_scale_e down_scale; - decode_cb_s *_decode_cb; encode_cb_s *_encode_cb; /* for async */ @@ -171,7 +162,6 @@ typedef struct { size_t src_size; void **dst_buffer; char *path; - int quality; image_util_colorspace_e colorspace; image_util_scale_e down_scale; decode_cb_s *_decode_cb; diff --git a/src/image_util_encode.c b/src/image_util_encode.c index 9b5389c..04875fd 100644 --- a/src/image_util_encode.c +++ b/src/image_util_encode.c @@ -113,7 +113,6 @@ int image_util_encode_create(image_util_type_e image_type, image_util_encode_h * _handle->dst_buffer = NULL; _handle->path = NULL; _handle->image_h = NULL; - _handle->mode = MODE_ENCODE; _handle->current_buffer_count = 0; _handle->current_resolution_count = 0; _handle->current_delay_count = 0; -- 2.7.4