summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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_