Skip to content

Commit

Permalink
core: utils/tmrec - removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 20, 2022
1 parent 0f3ce40 commit a33c9bb
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/core/utils/tmrec.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,6 @@ static inline int tr_strz_to_int(char *_bp)
}


static inline char* tr_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"
*/
Expand Down

0 comments on commit a33c9bb

Please sign in to comment.