diff options
Diffstat (limited to 'src/util/media-thumb-debug.c')
-rwxr-xr-x | src/util/media-thumb-debug.c | 33 |
1 files changed, 0 insertions, 33 deletions
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_ |