From f0a01c6131387e581c81bd27312f61459b93b415 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 23 Jun 2008 13:41:26 +0200 Subject: [PATCH] util: remove useless fuzzy Signed-off-by: Julien Danjou --- common/util.c | 10 ---------- common/util.h | 9 --------- 2 files changed, 19 deletions(-) diff --git a/common/util.c b/common/util.c index 7ff26631..a15909c6 100644 --- a/common/util.c +++ b/common/util.c @@ -130,16 +130,6 @@ position_to_str(position_t p) } } -fuzzy_t -fuzzy_get_from_str(const char *str) -{ - if(!a_strcmp(str, "true") || !a_strcmp(str, "yes")) - return Yes; - else if(!a_strcmp(str, "false") || !a_strcmp(str, "no")) - return No; - return Maybe; -} - /** \brief safe limited strcpy. * * Copies at most min(n-1, \c l) characters from \c src into \c dst, diff --git a/common/util.h b/common/util.h index b616db61..1162bb91 100644 --- a/common/util.h +++ b/common/util.h @@ -40,14 +40,6 @@ typedef enum Auto } position_t; -/** fuzzy_t logic */ -typedef enum -{ - No = false, - Yes = true, - Maybe -} fuzzy_t; - /** Link a name to a function */ typedef struct { @@ -331,7 +323,6 @@ void _warn(int, const char *, const char *, ...) position_t position_get_from_str(const char *); char * position_to_str(position_t); -fuzzy_t fuzzy_get_from_str(const char *); void *name_func_lookup(const char *, const name_func_link_t *); const char * name_func_rlookup(void *, const name_func_link_t *); void a_exec(const char *);