Remove unused code of _USE_LOG_FILE_ 47/147847/1
authorHaejeong Kim <backto.kim@samsung.com>
Wed, 6 Sep 2017 02:13:29 +0000 (11:13 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Wed, 6 Sep 2017 02:13:29 +0000 (11:13 +0900)
Change-Id: I8cf596093d4a4484e93370b5cbb23adecd640761

src/include/util/media-thumb-debug.h
src/util/media-thumb-debug.c

index 83333fa..caf3020 100755 (executable)
                                } \
                        } 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);
index 33d33af..6e201c0 100755 (executable)
 #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_