util: remove useless fuzzy

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-23 13:41:26 +02:00
parent 7803225553
commit f0a01c6131
2 changed files with 0 additions and 19 deletions

View File

@ -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(<tt>n-1</tt>, \c l) characters from \c src into \c dst,

View File

@ -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 *);