diff --git a/common/util.c b/common/util.c index b2987b705..c23396d6a 100644 --- a/common/util.c +++ b/common/util.c @@ -56,39 +56,6 @@ _warn(int line, const char *fct, const char *fmt, ...) fprintf(stderr, "\n"); } -/** Get a position type from a string. - * \param pos The position. - * \return A position. - */ -position_t -position_fromstr(const char *pos) -{ - if(a_strcmp(pos, "bottom") == 0) - return Bottom; - if(a_strcmp(pos, "right") == 0) - return Right; - if(a_strcmp(pos, "left") == 0) - return Left; - return Top; -} - -/** Convert a position type to a string. - * \param p The position. - * \return A position string. - */ -const char * -position_tostr(position_t p) -{ - switch(p) - { - case Top: return "top"; - case Bottom: return "bottom"; - case Right: return "right"; - case Left: return "left"; - default: return NULL; - } -} - /** Get a orientation type from a string. * \param pos The orientation. * \return A orientation. diff --git a/common/util.h b/common/util.h index f6af8d617..0a40c3444 100644 --- a/common/util.h +++ b/common/util.h @@ -43,15 +43,6 @@ typedef enum North, } orientation_t; -/** A list of possible position, not sex related */ -typedef enum -{ - Top = 0, - Bottom, - Right, - Left -} position_t; - /** \brief replace \c NULL strings with empty strings */ #define NONULL(x) (x ? x : "") @@ -338,8 +329,6 @@ void _fatal(int, const char *, const char *, ...) void _warn(int, const char *, const char *, ...) __attribute__ ((format(printf, 3, 4))); -position_t position_fromstr(const char *); -const char * position_tostr(position_t); orientation_t orientation_fromstr(const char *); const char * orientation_tostr(orientation_t); void a_exec(const char *);