summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-09-06 11:13:29 +0900
committerHaejeong Kim <backto.kim@samsung.com>2017-09-06 11:13:29 +0900
commit2ac89f4e154d45045a30fdfb45c47288fd744400 (patch)
tree5351a41a46fa4bf07bf0fbf48a031ec3aef07220
parent22ab0063a95c733ecf82ed9545651c8fc92c8812 (diff)
downloadlibmedia-thumbnail-2ac89f4e154d45045a30fdfb45c47288fd744400.tar.gz
libmedia-thumbnail-2ac89f4e154d45045a30fdfb45c47288fd744400.tar.bz2
libmedia-thumbnail-2ac89f4e154d45045a30fdfb45c47288fd744400.zip
Remove unused code of _USE_LOG_FILE_
Change-Id: I8cf596093d4a4484e93370b5cbb23adecd640761
-rwxr-xr-xsrc/include/util/media-thumb-debug.h9
-rwxr-xr-xsrc/util/media-thumb-debug.c33
2 files changed, 0 insertions, 42 deletions
diff --git a/src/include/util/media-thumb-debug.h b/src/include/util/media-thumb-debug.h
index 83333fa..caf3020 100755
--- a/src/include/util/media-thumb-debug.h
+++ b/src/include/util/media-thumb-debug.h
@@ -94,15 +94,6 @@
} \
} while (0)
-#ifdef _USE_LOG_FILE_
-void thumb_init_file_debug();
-void thumb_close_file_debug();
-FILE* get_fp();
-#define thumb_file_dbg(fmt, arg...) fprintf(get_fp(), "[%s: %d] " fmt "\n", __FUNCTION__, __LINE__, ##arg)
-
-#endif
-
-
#ifdef _PERFORMANCE_CHECK_
long
thumb_get_debug_time(void);
diff --git a/src/util/media-thumb-debug.c b/src/util/media-thumb-debug.c
index 33d33af..6e201c0 100755
--- a/src/util/media-thumb-debug.c
+++ b/src/util/media-thumb-debug.c
@@ -28,39 +28,6 @@
#ifdef _PERFORMANCE_CHECK_
static long g_time_usec = 0L;
-
-#ifdef _USE_LOG_FILE_
-static FILE *g_log_fp = NULL;
-static char _g_file_path[1024] = "\0";
-
-FILE *get_fp()
-{
- return g_log_fp;
-}
-
-void thumb_init_file_debug()
-{
- if (g_log_fp == NULL) {
- snprintf(_g_file_path, sizeof(_g_file_path), "/tmp/%s",
- "media-thumb.log");
- if (access(_g_file_path, R_OK == 0)) {
- remove(_g_file_path);
- }
-
- g_log_fp = fopen(_g_file_path, "a");
- }
-}
-
-void thumb_close_file_debug()
-{
- if (g_log_fp != NULL) {
- fclose(g_log_fp);
- g_log_fp = NULL;
- }
-}
-
-#endif
-
long thumb_get_debug_time(void)
{
#ifdef _PERFORMANCE_CHECK_