aboutsummaryrefslogtreecommitdiffstats
path: root/ui/capture_ui_utils.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-30 00:34:47 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-30 07:35:26 +0000
commit241862a47a59802d858d96577b5b700ddd318b88 (patch)
treeb43528027607e4de18153349a550524810809bd3 /ui/capture_ui_utils.c
parentad1391aa4e0f8610d756dadf9bb21b35d5f00a96 (diff)
Get rid of unused routine.
Change-Id: Iaf12ba7f13804a6d351ea85c0daa52d4489e8c57 Reviewed-on: https://code.wireshark.org/review/2713 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/capture_ui_utils.c')
-rw-r--r--ui/capture_ui_utils.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/ui/capture_ui_utils.c b/ui/capture_ui_utils.c
index 668385f08d..19d40be727 100644
--- a/ui/capture_ui_utils.c
+++ b/ui/capture_ui_utils.c
@@ -368,39 +368,6 @@ search_info(GList *if_list, gchar *if_name)
return NULL;
}
-
-/* build the string to display in the combo box for the given interface */
-static char *
-build_capture_combo_name(GList *if_list, gchar *if_name)
-{
- gchar *descr;
- char *if_string;
- if_info_t *if_info;
-
- /* Do we have a user-supplied description? */
- descr = capture_dev_user_descr_find(if_name);
- if (descr != NULL) {
- /* Yes, we have a user-supplied description; use it. */
- if_string = g_strdup_printf("%s: %s", descr, if_name);
- g_free(descr);
- } else {
- /* No, we don't have a user-supplied description; did we get
- one from the OS or libpcap? */
- if_info = search_info(if_list, if_name);
- if (if_info != NULL && if_info->vendor_description != NULL) {
- /* Yes - use it. */
- if_string = g_strdup_printf("%s: %s", if_info->vendor_description,
- if_info->name);
- } else {
- /* No. */
- if_string = g_strdup(if_name);
- }
- }
-
- return if_string;
-}
-
-
GList *
build_capture_combo_list(GList *if_list, gboolean do_hide)
{