From 0f3ce4029ee1f52804566dc945c7e0914f01405d Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 20 Dec 2022 11:15:30 +0100 Subject: [PATCH] cplc: removed unused function --- src/modules/cplc/cpl_time.c | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/src/modules/cplc/cpl_time.c b/src/modules/cplc/cpl_time.c index eed253b165d..f3604bc7f40 100644 --- a/src/modules/cplc/cpl_time.c +++ b/src/modules/cplc/cpl_time.c @@ -36,7 +36,7 @@ /************************ imported from "utils.h" ***************************/ -static inline int strz2int(char *_bp) +static inline int cpl_strz2int(char *_bp) { int _v; char *_p; @@ -53,33 +53,6 @@ static inline int strz2int(char *_bp) } -static inline char* trim(char* _s) -{ - int len; - char* end; - - /* Null pointer, there is nothing to do */ - if (!_s) return _s; - - /* Remove spaces and tabs from the beginning of string */ - while ((*_s == ' ') || (*_s == '\t')) _s++; - - len = strlen(_s); - - end = _s + len - 1; - - /* Remove trailing spaces and tabs */ - while ((*end == ' ') || (*end == '\t')) end--; - if (end != (_s + len - 1)) { - *(end+1) = '\0'; - } - - return _s; -} - - - - /************************ imported from "ac_tm.c" ***************************/ /* #define USE_YWEEK_U // Sunday system @@ -444,7 +417,7 @@ int cpl_tr_parse_interval(cpl_tmrec_p _trp, char *_in) { if(!_trp || !_in) return -1; - _trp->interval = strz2int(_in); + _trp->interval = cpl_strz2int(_in); return 0; }