1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Remove unused function.

This commit is contained in:
Qball Cow 2015-02-17 14:27:12 +01:00
parent a534a0f244
commit 3b18c28792
3 changed files with 6 additions and 31 deletions

View file

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

View file

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

View file

@ -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 )
{