From: Denys Vlasenko Date: Wed, 28 Jun 2017 17:10:29 +0000 (+0200) Subject: modutils: delete unused replace_underscores() X-Git-Tag: 1_27_0~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ae2b9f286c985394410aec19b12c1ebecfbe20f6;p=oweals%2Fbusybox.git modutils: delete unused replace_underscores() Signed-off-by: Denys Vlasenko --- diff --git a/modutils/modutils.c b/modutils/modutils.c index dae623ee4..6f7cd9721 100644 --- a/modutils/modutils.c +++ b/modutils/modutils.c @@ -75,12 +75,6 @@ void FAST_FUNC replace(char *s, char what, char with) } } -char* FAST_FUNC replace_underscores(char *s) -{ - replace(s, '-', '_'); - return s; -} - int FAST_FUNC string_to_llist(char *string, llist_t **llist, const char *delim) { char *tok; diff --git a/modutils/modutils.h b/modutils/modutils.h index 76ce242ba..4a702e97c 100644 --- a/modutils/modutils.h +++ b/modutils/modutils.h @@ -48,7 +48,6 @@ module_entry *moddb_get_or_create(module_db *db, const char *s) FAST_FUNC; void moddb_free(module_db *db) FAST_FUNC; void replace(char *s, char what, char with) FAST_FUNC; -char *replace_underscores(char *s) FAST_FUNC; int string_to_llist(char *string, llist_t **llist, const char *delim) FAST_FUNC; char *filename2modname(const char *filename, char *modname) FAST_FUNC; #if ENABLE_FEATURE_CMDLINE_MODULE_OPTIONS