diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils.c | 33 | ||||
-rw-r--r-- | utils/utils.h | 1 |
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 |