From 2fe58f67a97acb0aa0c2b30c784c2dc984c1e38a Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 18 Oct 2013 09:13:56 +0200 Subject: remove obsolete function --- runtime/stringbuf.c | 20 -------------------- runtime/stringbuf.h | 1 - 2 files changed, 21 deletions(-) diff --git a/runtime/stringbuf.c b/runtime/stringbuf.c index 13f38710..b35fe4ef 100644 --- a/runtime/stringbuf.c +++ b/runtime/stringbuf.c @@ -526,26 +526,6 @@ rsRetVal rsCStrTruncate(cstr_t *pThis, size_t nTrunc) return RS_RET_OK; } -/* Trim trailing whitespace from a given string - */ -rsRetVal rsCStrTrimTrailingWhiteSpace(cstr_t *pThis) -{ - register int i; - register uchar *pC; - rsCHECKVALIDOBJECT(pThis, OIDrsCStr); - - i = pThis->iStrLen; - pC = pThis->pBuf + i - 1; - while(i > 0 && isspace((int)*pC)) { - --pC; - --i; - } - /* i now is the new string length! */ - pThis->iStrLen = i; - - return RS_RET_OK; -} - /* Trim trailing whitespace from a given string */ rsRetVal cstrTrimTrailingWhiteSpace(cstr_t *pThis) diff --git a/runtime/stringbuf.h b/runtime/stringbuf.h index d0502a5b..2df48ab4 100644 --- a/runtime/stringbuf.h +++ b/runtime/stringbuf.h @@ -155,7 +155,6 @@ static inline uchar* cstrGetSzStrNoNULL(cstr_t *pThis) */ rsRetVal rsCStrTruncate(cstr_t *pThis, size_t nTrunc); -rsRetVal rsCStrTrimTrailingWhiteSpace(cstr_t *pThis); rsRetVal cstrTrimTrailingWhiteSpace(cstr_t *pThis); /** -- cgit v1.2.3