From de672de74002f3a77b14f25a06900d3ef38c3bf7 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 22 Jan 2009 00:22:24 +0200 Subject: [PATCH] Remove some testing stuff --- src/complete.c | 3 --- src/logging.c | 16 ---------------- 2 files changed, 19 deletions(-) diff --git a/src/complete.c b/src/complete.c index 2d7f5ffef..294f263f5 100644 --- a/src/complete.c +++ b/src/complete.c @@ -124,9 +124,6 @@ filename_completion_function (char *text, int state) strcat (tmp, PATH_SEP_STR); strcat (tmp, entry->d_name); canonicalize_pathname (tmp); -if (! strncmp(dirname,"/home", 5)){ -mc_log2("'%s' -> '%s'\n",entry->d_name, tmp); -} /* Unix version */ if (!mc_stat (tmp, &tempstat)){ uid_t my_uid = getuid (); diff --git a/src/logging.c b/src/logging.c index 6bd147c16..bfd48e054 100644 --- a/src/logging.c +++ b/src/logging.c @@ -68,19 +68,3 @@ mc_log(const char *fmt, ...) g_free(logfilename); } } - -void -mc_log2(const char *fmt, ...) -{ - va_list args; - FILE *f; - char *logfilename; - - va_start(args, fmt); - logfilename = g_strdup_printf("%s/.mc/log2", home_dir); - if ((f = fopen(logfilename, "a")) != NULL) { - (void)vfprintf(f, fmt, args); - (void)fclose(f); - } - g_free(logfilename); -} -- 2.11.4.GIT