summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-12-21 22:05:05 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-12-21 22:05:05 +0000
commit96bbdbc7ab6bcb4affccc7c356587891a15b133d (patch)
treebef8bb36b1fce9301492097f7f9e40241f65324a /utils
parentd6f9f025f2efc6ab4fece185ffeddcbb210b2fe7 (diff)
downloadnetsurf-96bbdbc7ab6bcb4affccc7c356587891a15b133d.tar.gz
netsurf-96bbdbc7ab6bcb4affccc7c356587891a15b133d.tar.bz2
[project @ 2003-12-21 22:05:05 by jmb]
Clean up version string related mess. svn path=/import/netsurf/; revision=438
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.c33
-rw-r--r--utils/utils.h1
2 files changed, 0 insertions, 34 deletions
diff --git a/utils/utils.c b/utils/utils.c
index 98038cfe8..004fa3fa7 100644
--- a/utils/utils.c
+++ b/utils/utils.c
@@ -292,36 +292,3 @@ bool is_dir(const char *path)
return S_ISDIR(s.st_mode) ? true : false;
}
-
-/**
- * Fills in the version string.
- * The release version is defined in the Messages file.
- */
-char *populate_version(void) {
-
- const char *version = "%s (%s %s %s)"; /**< version string prototype */
- char *p;
- char *day;
- char *mon;
- char *year;
- char *temp = xcalloc(12, sizeof(char));
- char *ret = xcalloc(30, sizeof(char));
-
- sprintf(temp, "%s", __DATE__);
- p = strchr(temp, ' ');
- *p = 0;
- mon = strdup(temp);
- if (strchr(p+1, ' ') == p+1)
- day = p+2;
- else
- day = p+1;
- p = strchr(day, ' ');
- *p = 0;
- year = p+1;
-
- sprintf(ret, version, messages_get("Version:CVS Test Build"), day, mon, year);
-
- xfree(temp);
-
- return ret;
-}
diff --git a/utils/utils.h b/utils/utils.h
index 4071df4cf..fb6255511 100644
--- a/utils/utils.h
+++ b/utils/utils.h
@@ -27,6 +27,5 @@ char *squash_tolat1(xmlChar *s);
char *url_join(const char* new, const char* base);
char *get_host_from_url(char* url);
bool is_dir(const char *path);
-char * populate_version(void);
#endif