Skip to content

Commit

Permalink
Removed unused function ht_bw_str().
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Mar 15, 2014
1 parent 2f3ded7 commit 5afe9b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,19 +501,6 @@ input_string (WINDOW * win, int pos_y, int pos_x, size_t max_width,
return s;
}

/* get user-agent string for given key */
char *
ht_bw_str (GHashTable * ht, const char *key)
{
gpointer value_ptr;

value_ptr = g_hash_table_lookup (ht, key);
if (value_ptr != NULL)
return filesize_str (*(unsigned long long *) value_ptr);
else
return alloc_string ("-");
}

/* allocate memory for a new instace of GAgents */
static GAgents *
new_gagents (unsigned int n)
Expand Down
1 change: 0 additions & 1 deletion ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ typedef struct GSpinner_

/* *INDENT-OFF* */
char *get_browser_type (char *line);
char *ht_bw_str (GHashTable * ht, const char *key);
char *input_string (WINDOW * win, int pos_y, int pos_x, size_t max_width, const char *str, int enable_case, int *toggle_case);
GSpinner *new_gspinner (void);
int split_agent_str (char *ptr_value, GAgents * agents, int max);
Expand Down

0 comments on commit 5afe9b6

Please sign in to comment.