Removed trim method from util

This commit is contained in:
James Booth
2012-04-26 23:27:40 +01:00
parent 381d4b8dc9
commit a41dab3d3c
4 changed files with 2 additions and 76 deletions

10
util.c
View File

@@ -25,8 +25,6 @@
#include <ctype.h>
#include <stdlib.h>
#include <glib.h>
void get_time(char *thetime)
{
time_t rawtime;
@@ -38,14 +36,6 @@ void get_time(char *thetime)
strftime(thetime, 80, "%H:%M", timeinfo);
}
char *trim(char *str)
{
if (str == NULL)
return NULL;
return g_strstrip(str);
}
char * str_replace (const char *string, const char *substr,
const char *replacement) {
char *tok = NULL;