From 2730fe4539b3ecde797078ba2dae6745a371a9e7 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 29 Jun 2009 22:50:37 -0400 Subject: [PATCH] moto-c: fix port grabbing; remove dead code --- plugins/mm-plugin-moto-c.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/plugins/mm-plugin-moto-c.c b/plugins/mm-plugin-moto-c.c index a77e65a8..3e253613 100644 --- a/plugins/mm-plugin-moto-c.c +++ b/plugins/mm-plugin-moto-c.c @@ -102,6 +102,9 @@ grab_port (MMPluginBase *base, MMModem *modem = NULL; const char *name, *subsys, *devfile, *sysfs_path; + port = mm_plugin_base_supports_task_get_port (task); + g_assert (port); + devfile = g_udev_device_get_device_file (port); if (!devfile) { g_set_error (error, 0, 0, "Could not get port's sysfs file."); @@ -147,19 +150,11 @@ mm_plugin_moto_c_init (MMPluginMotoC *self) g_signal_connect (self, "probe-result", G_CALLBACK (probe_result), NULL); } -static void -dispose (GObject *object) -{ -} - static void mm_plugin_moto_c_class_init (MMPluginMotoCClass *klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); - object_class->dispose = dispose; - pb_class->supports_port = supports_port; pb_class->grab_port = grab_port; }