summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-06-30 13:03:28 +1000
committerAaron Plattner <aplattner@nvidia.com>2011-04-12 15:46:05 -0700
commitc6347c3198bcd05f282a7ee2ad5954bb4b391a0e (patch)
tree2484ea092239da6fefa20de44f2807fda0dd8848
parent8566a6af74dfe8021ce16c75fe8029e2e8c4b488 (diff)
Purge unused Get_Date().
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r--xts5/include/Xstlib.h1
-rw-r--r--xts5/src/libproto/Utils.c22
2 files changed, 1 insertions, 22 deletions
diff --git a/xts5/include/Xstlib.h b/xts5/include/Xstlib.h
index 0d0c2903..ad7c4b6d 100644
--- a/xts5/include/Xstlib.h
+++ b/xts5/include/Xstlib.h
@@ -406,7 +406,6 @@ Window Create_Window();
void XstExit();
void Exit_OK();
xReply *Expect();
-char *Get_Date();
int Get_Timer();
XID Get_Resource_Id();
int Log_Close();
diff --git a/xts5/src/libproto/Utils.c b/xts5/src/libproto/Utils.c
index af2ffb1b..fac4f1eb 100644
--- a/xts5/src/libproto/Utils.c
+++ b/xts5/src/libproto/Utils.c
@@ -144,26 +144,6 @@ char * asctime();
/*
- * Return a character string with the current date and time.
- */
-
-char *
-Get_Date()
-{
- struct tm *tp;
- struct tm *localtime();
- time_t tim;
- static char buf[26];
-
- tim = time(0);
- tp = localtime(&tim);
- (void) strcpy(buf, asctime(tp));
- buf[24] = '\0';
- return(buf);
-}
-
-
-/*
* These are routines found in BSD and not found in SYSV.
*/
@@ -184,4 +164,4 @@ register length;
*b2++ = *b1++;
}
}
-}
+} \ No newline at end of file