]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/debug.c
Unused modules removed from libstgcommon
[stg.git] / stglibs / common.lib / debug.c
diff --git a/stglibs/common.lib/debug.c b/stglibs/common.lib/debug.c
deleted file mode 100644 (file)
index 8a2d15c..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- *****************************************************************************
- *
- * File:        debug.c
- *
- * Description: ÷Ù×ÏÄ ÏÔÌÁÄÏÞÎÏÊ ÉÎÆÏÒÍÁÃÉÉ × log ÆÁÊÌ
- *
- * $Id: debug.c,v 1.2 2005/11/16 16:19:40 nobunaga Exp $
- *
- *****************************************************************************
- */
-
-#include <stdarg.h>
-#include <time.h>
-#include <string.h>
-
-#include "debug.h"
-
-
-/*
- *****************************************************************************
- * -= óÏÚÄÁÎÉÅ ÚÁÐÉÓÉ × log-ÆÁÊÌÅ =-
- *****************************************************************************
- */
-void PrintfLog(FILE * logFile, char * scriptName, char * fmt, ...)
-{
-    #ifndef DEMO
-    va_list vaList;
-    char buff[MAX_LOG_BUFF_LEN];
-    time_t curTime;
-    char curTimeCh[26];
-
-    if (logFile)
-    {
-        va_start(vaList, fmt);
-        vsprintf(buff, fmt, vaList);
-        va_end(vaList);
-
-        curTime = time(NULL);
-        ctime_r(&curTime, curTimeCh);
-        curTimeCh[strlen(curTimeCh)-1] = 0;
-        fprintf(logFile, "%s [%s]: %s\n", scriptName, curTimeCh, buff);
-    }
-    #endif
-    return;
-} /* PrintfLog() */
-
-/* EOF */
-