From ed538c2b84ef4ffcc0cf354ea36d3f4ad0144982 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Thu, 12 Oct 2017 15:58:52 -0400 Subject: [PATCH] drop fu_dell_get_cable_type, unused --- plugins/dell/fu-dell-common.c | 17 ----------------- plugins/dell/fu-dell-common.h | 3 --- 2 files changed, 20 deletions(-) diff --git a/plugins/dell/fu-dell-common.c b/plugins/dell/fu-dell-common.c index 577b3a75d..27a3bcafc 100644 --- a/plugins/dell/fu-dell-common.c +++ b/plugins/dell/fu-dell-common.c @@ -219,23 +219,6 @@ fu_dell_get_dock_type (guint8 type) return NULL; } -guint32 -fu_dell_get_cable_type (guint8 type) -{ - g_autoptr (FuDellSmiObj) smi_obj = NULL; - DOCK_UNION buf; - - /* not yet initialized, look it up */ - if (type == CABLE_TYPE_NONE) { - smi_obj = g_malloc0 (sizeof(FuDellSmiObj)); - smi_obj->smi = dell_smi_factory (DELL_SMI_DEFAULTS); - if (!fu_dell_query_dock (smi_obj, &buf)) - return 0; - type = (buf.record->dock_info).cable_type; - } - return type; -} - gboolean fu_dell_toggle_dock_mode (FuDellSmiObj *smi_obj, guint32 new_mode, guint32 dock_location, GError **error) diff --git a/plugins/dell/fu-dell-common.h b/plugins/dell/fu-dell-common.h index c378c1d21..73ce0e80f 100644 --- a/plugins/dell/fu-dell-common.h +++ b/plugins/dell/fu-dell-common.h @@ -107,9 +107,6 @@ fu_dell_query_dock (FuDellSmiObj *smi_obj, DOCK_UNION *buf); const gchar* fu_dell_get_dock_type (guint8 type); -guint32 -fu_dell_get_cable_type (guint8 type); - gboolean fu_dell_toggle_dock_mode (FuDellSmiObj *smi_obj, guint32 new_mode, guint32 dock_location, GError **error);