From 89dcb5be1edc6b70cf7ee5120b62dae3100f1c3d Mon Sep 17 00:00:00 2001 From: QC Date: Sat, 29 Aug 2015 11:56:50 +0200 Subject: [PATCH] Remove unused function --- include/helper.h | 1 - source/helper.c | 13 ------------- source/rofi.c | 4 +++- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/include/helper.h b/include/helper.h index 008964ae..250bea9b 100644 --- a/include/helper.h +++ b/include/helper.h @@ -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 diff --git a/source/helper.c b/source/helper.c index 9040b735..b18de247 100644 --- a/source/helper.c +++ b/source/helper.c @@ -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 ) { diff --git a/source/rofi.c b/source/rofi.c index b5feab86..2939fca8 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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 ) {