882be7eea9ec10c09a9ac1fc86dfb24c07eabafb braney Thu Feb 28 10:06:39 2013 -0800 move hasProtocol() function from common.c to net.c (code review #10278) diff --git src/inc/common.h src/inc/common.h index c204fbf..f8d1d6c 100644 --- src/inc/common.h +++ src/inc/common.h @@ -1430,19 +1430,16 @@ * which is always GMT. Returns -1 on failure of mktime */ time_t dateToSeconds(const char *date,const char*format); // Convert a string date to time_t boolean dateIsOld(const char *date,const char*format); // Is this string date older than now? boolean dateIsOlderBy(const char *date,const char*format, time_t seconds); // Is this string date older than now by this many seconds? char *dateAddTo(char *date,char *format,int addYears,int addMonths,int addDays); /* Add years,months,days to a formatted date and returns the new date as a cloned string * format is a strptime/strftime format: %F = yyyy-mm-dd */ - -boolean hasProtocol(char *urlOrPath); -/* Return TRUE if it looks like it has http://, ftp:// etc. */ #endif /* COMMON_H */