From: Michal Marek Date: Tue, 24 Feb 2015 15:32:09 +0000 (+0100) Subject: kconfig: Remove dead code X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=07e4b780c277720017c452506789282bdb62b8c7;p=carl9170fw.git kconfig: Remove dead code Signed-off-by: Michal Marek Signed-off-by: Christian Lamparter --- diff --git a/config/expr.c b/config/expr.c index d662652..4b4cf8e 100644 --- a/config/expr.c +++ b/config/expr.c @@ -978,9 +978,6 @@ tristate expr_calc_value(struct expr *e) int expr_compare_type(enum expr_type t1, enum expr_type t2) { -#if 0 - return 1; -#else if (t1 == t2) return 0; switch (t1) { @@ -1005,7 +1002,6 @@ int expr_compare_type(enum expr_type t1, enum expr_type t2) } printf("[%dgt%d?]", t1, t2); return 0; -#endif } static inline struct expr * diff --git a/config/lkc.h b/config/lkc.h index e418a30..9f845ea 100644 --- a/config/lkc.h +++ b/config/lkc.h @@ -135,7 +135,6 @@ struct gstr { int max_width; }; struct gstr str_new(void); -struct gstr str_assign(const char *s); void str_free(struct gstr *gs); void str_append(struct gstr *gs, const char *s); void str_printf(struct gstr *gs, const char *fmt, ...); diff --git a/config/util.c b/config/util.c index 94f9c83..0e76042 100644 --- a/config/util.c +++ b/config/util.c @@ -88,16 +88,6 @@ struct gstr str_new(void) return gs; } -/* Allocate and assign growable string */ -struct gstr str_assign(const char *s) -{ - struct gstr gs; - gs.s = strdup(s); - gs.len = strlen(s) + 1; - gs.max_width = 0; - return gs; -} - /* Free storage for growable string */ void str_free(struct gstr *gs) {