From ae2b9f286c985394410aec19b12c1ebecfbe20f6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 28 Jun 2017 19:10:29 +0200 Subject: modutils: delete unused replace_underscores() Signed-off-by: Denys Vlasenko --- modutils/modutils.c | 6 ------ modutils/modutils.h | 1 - 2 files changed, 7 deletions(-) (limited to 'modutils') 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 -- cgit v1.2.3