mirror of https://github.com/davatorium/rofi.git
Remove unused function
This commit is contained in:
parent
ae3c8c764f
commit
89dcb5be1e
|
@ -81,7 +81,6 @@ int find_arg_int ( const char * const key, int *val );
|
||||||
* @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 char * const key, char** val );
|
int find_arg_str ( const char * const key, char** val );
|
||||||
int find_arg_str_alloc ( const char * const key, char** val );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param key The key to search for
|
* @param key The key to search for
|
||||||
|
|
|
@ -224,19 +224,6 @@ int find_arg_str ( const char * const key, char** val )
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
int find_arg_str_alloc ( const char * const key, char** val )
|
|
||||||
{
|
|
||||||
int i = find_arg ( key );
|
|
||||||
|
|
||||||
if ( val != NULL && i > 0 && i < stored_argc - 1 ) {
|
|
||||||
if ( *val != NULL ) {
|
|
||||||
g_free ( *val );
|
|
||||||
}
|
|
||||||
*val = g_strdup ( stored_argv[i + 1] );
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
int find_arg_int ( const char * const key, int *val )
|
int find_arg_int ( const char * const key, int *val )
|
||||||
{
|
{
|
||||||
|
|
|
@ -182,7 +182,9 @@ static void menu_set_arrow_text ( int filtered_lines, int selected, int max_elem
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Levenshtein Sorting.
|
||||||
|
*/
|
||||||
|
|
||||||
static int lev_sort ( const void *p1, const void *p2, void *arg )
|
static int lev_sort ( const void *p1, const void *p2, void *arg )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue