summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-09-06 02:18:16 (GMT)
committerHaejeong Kim <backto.kim@samsung.com>2017-09-06 02:19:51 (GMT)
commit9bba570109967f1cc96acf53beef04ad34f2aaac (patch)
treecf9700739d44ee0dabd302cb1dfbdf0401b26c5d /src
parent2ac89f4e154d45045a30fdfb45c47288fd744400 (diff)
downloadlibmedia-thumbnail-9bba570109967f1cc96acf53beef04ad34f2aaac.zip
libmedia-thumbnail-9bba570109967f1cc96acf53beef04ad34f2aaac.tar.gz
libmedia-thumbnail-9bba570109967f1cc96acf53beef04ad34f2aaac.tar.bz2
Remove unused code of _PERFORMANCE_CHECK_ and remove empty media-thumb-debug.c filerefs/changes/50/147850/2
Change-Id: Ib25439035f2426cd4c14d3c37dca2780f98d2a6e
Diffstat (limited to 'src')
-rwxr-xr-xsrc/codec/img-codec-parser.c5
-rwxr-xr-xsrc/include/util/media-thumb-debug.h11
-rwxr-xr-xsrc/util/media-thumb-debug.c75
3 files changed, 0 insertions, 91 deletions
diff --git a/src/codec/img-codec-parser.c b/src/codec/img-codec-parser.c
index 70f9587..75f0a06 100755
--- a/src/codec/img-codec-parser.c
+++ b/src/codec/img-codec-parser.c
@@ -23,11 +23,6 @@
#include <stdlib.h>
#include <string.h>
-#if defined(_PERFORMANCE_CHECK_)
-#include <time.h>
-#include <sys/time.h>
-#endif
-
#include <media-util-err.h>
#include "media-thumb-debug.h"
#include "img-codec-common.h"
diff --git a/src/include/util/media-thumb-debug.h b/src/include/util/media-thumb-debug.h
index caf3020..82deeb0 100755
--- a/src/include/util/media-thumb-debug.h
+++ b/src/include/util/media-thumb-debug.h
@@ -94,16 +94,5 @@
} \
} while (0)
-#ifdef _PERFORMANCE_CHECK_
-long
-thumb_get_debug_time(void);
-void
-thumb_reset_debug_time(void);
-void
-thumb_print_debug_time(char* time_string);
-void
-thumb_print_debug_time_ex(long start, long end, const char* func_name, char* time_string);
-#endif
-
#endif /*_MEDIA_THUMB_DEBUG_H_*/
diff --git a/src/util/media-thumb-debug.c b/src/util/media-thumb-debug.c
deleted file mode 100755
index 6e201c0..0000000
--- a/src/util/media-thumb-debug.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * libmedia-thumbnail
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Hyunjun Ko <zzoon.ko@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <unistd.h>
-#include <asm/unistd.h>
-#include <time.h>
-#include <sys/time.h>
-#include "media-thumb-debug.h"
-
-#ifdef _PERFORMANCE_CHECK_
-static long g_time_usec = 0L;
-
-long thumb_get_debug_time(void)
-{
-#ifdef _PERFORMANCE_CHECK_
- struct timeval time;
- gettimeofday(&time, NULL);
- return time.tv_sec * 1000000 + time.tv_usec;
-#else
- return 0L;
-#endif
-}
-
-void thumb_reset_debug_time(void)
-{
-#ifdef _PERFORMANCE_CHECK_
- struct timeval time;
- gettimeofday(&time, NULL);
- g_time_usec = time.tv_sec * 1000000 + time.tv_usec;
-#endif
-}
-
-void thumb_print_debug_time(char *time_string)
-{
-#ifdef _PERFORMANCE_CHECK_
- struct timeval time;
- double totaltime = 0.0;
-
- gettimeofday(&time, NULL);
- totaltime = (double)(time.tv_sec * 1000000 + time.tv_usec - g_time_usec) / CLOCKS_PER_SEC;
-
- thumb_dbg("time [%s] : %f", time_string, totaltime);
-#endif
-}
-
-void
-thumb_print_debug_time_ex(long start, long end, const char *func_name, char *time_string)
-{
-#ifdef _PERFORMANCE_CHECK_
- double totaltime = 0.0;
-
- totaltime = (double)(end - start) / CLOCKS_PER_SEC;
-
- thumb_dbg("time [%s: %s] : %f", func_name, time_string, totaltime);
-#endif
-}
-#endif