Module: kamailio
Branch: master
Commit: a33c9bb24f01195c5654e9699079eb3d4548692e
URL:
https://github.com/kamailio/kamailio/commit/a33c9bb24f01195c5654e9699079eb3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-12-20T11:17:07+01:00
core: utils/tmrec - removed unused function
---
Modified: src/core/utils/tmrec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a33c9bb24f01195c5654e9699079eb3…
Patch:
https://github.com/kamailio/kamailio/commit/a33c9bb24f01195c5654e9699079eb3…
---
diff --git a/src/core/utils/tmrec.c b/src/core/utils/tmrec.c
index 609aa78b434..1b468acc42c 100644
--- a/src/core/utils/tmrec.c
+++ b/src/core/utils/tmrec.c
@@ -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"
*/