position: This is unused, so remove
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
6bb646861c
commit
fc3cac5f73
|
@ -56,39 +56,6 @@ _warn(int line, const char *fct, const char *fmt, ...)
|
||||||
fprintf(stderr, "\n");
|
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.
|
/** Get a orientation type from a string.
|
||||||
* \param pos The orientation.
|
* \param pos The orientation.
|
||||||
* \return A orientation.
|
* \return A orientation.
|
||||||
|
|
|
@ -43,15 +43,6 @@ typedef enum
|
||||||
North,
|
North,
|
||||||
} orientation_t;
|
} 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 */
|
/** \brief replace \c NULL strings with empty strings */
|
||||||
#define NONULL(x) (x ? x : "")
|
#define NONULL(x) (x ? x : "")
|
||||||
|
|
||||||
|
@ -338,8 +329,6 @@ void _fatal(int, const char *, const char *, ...)
|
||||||
void _warn(int, const char *, const char *, ...)
|
void _warn(int, const char *, const char *, ...)
|
||||||
__attribute__ ((format(printf, 3, 4)));
|
__attribute__ ((format(printf, 3, 4)));
|
||||||
|
|
||||||
position_t position_fromstr(const char *);
|
|
||||||
const char * position_tostr(position_t);
|
|
||||||
orientation_t orientation_fromstr(const char *);
|
orientation_t orientation_fromstr(const char *);
|
||||||
const char * orientation_tostr(orientation_t);
|
const char * orientation_tostr(orientation_t);
|
||||||
void a_exec(const char *);
|
void a_exec(const char *);
|
||||||
|
|
Loading…
Reference in New Issue