diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-26 23:39:14 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-26 23:40:40 +0300 |
commit | 91171b8df0f0d590e330aebaa754d0ec386de7c9 (patch) | |
tree | cc969d4a4da30b7c16f2dd4e5210456b27f5a090 /rpmio | |
parent | 21e0e5cd482620bc73ff221b7ce26b41f97d7cee (diff) | |
download | librpm-tizen-91171b8df0f0d590e330aebaa754d0ec386de7c9.tar.gz librpm-tizen-91171b8df0f0d590e330aebaa754d0ec386de7c9.tar.bz2 librpm-tizen-91171b8df0f0d590e330aebaa754d0ec386de7c9.zip |
Bury stripTrailingChar() inside the only remaining user
- There used to be some other callers too but seems they've passed
away, leaving just the relocation code in rpmte.c. Which means we
can get this ugly bit out of the API.
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmstring.c | 8 | ||||
-rw-r--r-- | rpmio/rpmstring.h | 8 |
2 files changed, 0 insertions, 16 deletions
diff --git a/rpmio/rpmstring.c b/rpmio/rpmstring.c index 7365e1c97..8961cb3e6 100644 --- a/rpmio/rpmstring.c +++ b/rpmio/rpmstring.c @@ -11,14 +11,6 @@ #include "debug.h" -char * stripTrailingChar(char * s, char c) -{ - char * t; - for (t = s + strlen(s) - 1; *t == c && t >= s; t--) - *t = '\0'; - return s; -} - int rstrcasecmp(const char * s1, const char * s2) { const char * p1 = s1; diff --git a/rpmio/rpmstring.h b/rpmio/rpmstring.h index 7a2c3bce2..4e8a5dbf7 100644 --- a/rpmio/rpmstring.h +++ b/rpmio/rpmstring.h @@ -172,14 +172,6 @@ char *rstrscat(char **dest, const char *arg, ...) RPM_GNUC_NULL_TERMINATED; */ size_t rstrlcpy(char *dest, const char *src, size_t n); -/** \ingroup rpmstring - * Remove occurences of trailing character from string. - * @param s string - * @param c character to strip - * @return string - */ -char * stripTrailingChar(char * s, char c); - #ifdef __cplusplus } #endif |