diff --git a/include/helper.h b/include/helper.h index b985c2fe..2e1dbe23 100644 --- a/include/helper.h +++ b/include/helper.h @@ -89,18 +89,6 @@ int find_arg_int ( const int argc, char * const argv[], const char * const key, * @returns TRUE if key was found and val was set. */ int find_arg_str ( const int argc, char * const argv[], const char * const key, char** val ); -/** - * @param argc Number of arguments. - * @param argv 2 dimensional array of arguments. - * @param key The key to search for - * @param val Pointer to the string to set to the key value (if found) - * - * Parse command line argument 'key' to string. - * Creates an allocated copy of the string. - * - * @returns TRUE if key was found and val was set. - */ -int find_arg_str_alloc ( const int argc, char * const argv[], const char * const key, char** val ); /** * @param argc Number of arguments. diff --git a/include/textbox.h b/include/textbox.h index a9358dc5..e618b2d8 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -22,12 +22,12 @@ typedef struct typedef enum { - TB_AUTOHEIGHT = 1 << 0, - TB_AUTOWIDTH = 1 << 1, - TB_LEFT = 1 << 16, - TB_RIGHT = 1 << 17, - TB_CENTER = 1 << 18, - TB_EDITABLE = 1 << 19, + TB_AUTOHEIGHT = 1 << 0, + TB_AUTOWIDTH = 1 << 1, + TB_LEFT = 1 << 16, + TB_RIGHT = 1 << 17, + TB_CENTER = 1 << 18, + TB_EDITABLE = 1 << 19, } TextboxFlags; diff --git a/source/helper.c b/source/helper.c index f439529e..43683220 100644 --- a/source/helper.c +++ b/source/helper.c @@ -217,19 +217,6 @@ int find_arg_str ( const int argc, char * const argv[], const char * const key, } return FALSE; } -int find_arg_str_alloc ( const int argc, char * const argv[], const char * const key, char** val ) -{ - int i = find_arg ( argc, argv, key ); - - if ( val != NULL && i > 0 && i < argc - 1 ) { - if ( *val != NULL ) { - g_free ( *val ); - } - *val = g_strdup ( argv[i + 1] ); - return TRUE; - } - return FALSE; -} int find_arg_int ( const int argc, char * const argv[], const char * const key, int *val ) {