position: This is unused, so remove

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-09-02 19:28:12 +02:00
parent 6bb646861c
commit fc3cac5f73
2 changed files with 0 additions and 44 deletions

View File

@ -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.

View File

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