From: Masahiro Yamada Date: Mon, 13 Aug 2018 16:48:38 +0000 (+0900) Subject: kconfig: remove unused sym_get_env_prop() function X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=0de72262902cf8398f6163550ec54e6cc9b2cc1e;p=carl9170fw.git kconfig: remove unused sym_get_env_prop() function This function is unused since commit 104daea149c4 ("kconfig: reference environment variables directly and remove 'option env='"). Signed-off-by: Masahiro Yamada Acked-by: Sam Ravnborg Signed-off-by: Christian Lamparter --- diff --git a/config/lkc.h b/config/lkc.h index 6b7bbc6..9eb7c83 100644 --- a/config/lkc.h +++ b/config/lkc.h @@ -125,7 +125,6 @@ const char *sym_get_string_default(struct symbol *sym); struct symbol *sym_check_deps(struct symbol *sym); struct property *prop_alloc(enum prop_type type, struct symbol *sym); struct symbol *prop_get_symbol(struct property *prop); -struct property *sym_get_env_prop(struct symbol *sym); static inline tristate sym_get_tristate_value(struct symbol *sym) { diff --git a/config/symbol.c b/config/symbol.c index 869a5e8..073d780 100644 --- a/config/symbol.c +++ b/config/symbol.c @@ -76,15 +76,6 @@ struct property *sym_get_choice_prop(struct symbol *sym) return NULL; } -struct property *sym_get_env_prop(struct symbol *sym) -{ - struct property *prop; - - for_all_properties(sym, prop, P_ENV) - return prop; - return NULL; -} - static struct property *sym_get_default_prop(struct symbol *sym) { struct property *prop;