mirror of https://github.com/davatorium/rofi.git
Remove unused function.
This commit is contained in:
parent
a534a0f244
commit
3b18c28792
|
@ -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.
|
* @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 );
|
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.
|
* @param argc Number of arguments.
|
||||||
|
|
|
@ -22,12 +22,12 @@ typedef struct
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
TB_AUTOHEIGHT = 1 << 0,
|
TB_AUTOHEIGHT = 1 << 0,
|
||||||
TB_AUTOWIDTH = 1 << 1,
|
TB_AUTOWIDTH = 1 << 1,
|
||||||
TB_LEFT = 1 << 16,
|
TB_LEFT = 1 << 16,
|
||||||
TB_RIGHT = 1 << 17,
|
TB_RIGHT = 1 << 17,
|
||||||
TB_CENTER = 1 << 18,
|
TB_CENTER = 1 << 18,
|
||||||
TB_EDITABLE = 1 << 19,
|
TB_EDITABLE = 1 << 19,
|
||||||
} TextboxFlags;
|
} TextboxFlags;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -217,19 +217,6 @@ int find_arg_str ( const int argc, char * const argv[], const char * const key,
|
||||||
}
|
}
|
||||||
return FALSE;
|
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 )
|
int find_arg_int ( const int argc, char * const argv[], const char * const key, int *val )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue