Remove unused function

This commit is contained in:
QC 2015-08-29 11:56:50 +02:00
parent ae3c8c764f
commit 89dcb5be1e
3 changed files with 3 additions and 15 deletions

View file

@ -81,7 +81,6 @@ int find_arg_int ( const char * const key, int *val );
* @returns TRUE if key was found and val was set.
*/
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

View file

@ -224,19 +224,6 @@ int find_arg_str ( const char * const key, char** val )
}
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 )
{

View file

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