aboutsummaryrefslogtreecommitdiff
path: root/plugins/linktop/mm-plugin-linktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/linktop/mm-plugin-linktop.c')
-rw-r--r--plugins/linktop/mm-plugin-linktop.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/linktop/mm-plugin-linktop.c b/plugins/linktop/mm-plugin-linktop.c
index 7c8f3249..38e127ce 100644
--- a/plugins/linktop/mm-plugin-linktop.c
+++ b/plugins/linktop/mm-plugin-linktop.c
@@ -45,41 +45,6 @@ create_modem (MMPlugin *self,
product));
}
-static gboolean
-grab_port (MMPlugin *self,
- MMBaseModem *modem,
- MMPortProbe *probe,
- GError **error)
-{
- GUdevDevice *port;
- const gchar *devfile;
-
- /* The Linktop plugin cannot do anything with non-AT ports */
- if (!mm_port_probe_is_at (probe)) {
- g_set_error_literal (error,
- MM_CORE_ERROR,
- MM_CORE_ERROR_UNSUPPORTED,
- "Ignoring non-AT port");
- return FALSE;
- }
-
- port = mm_port_probe_peek_port (probe);
-
- /* TODO: Why do we check for device file? */
- devfile = g_udev_device_get_device_file (port);
- if (!devfile) {
- g_set_error (error, 0, 0, "Could not get port's sysfs file.");
- return FALSE;
- }
-
- return mm_base_modem_grab_port (modem,
- mm_port_probe_get_port_subsys (probe),
- mm_port_probe_get_port_name (probe),
- MM_PORT_TYPE_AT, /* we only allow AT ports here */
- MM_AT_PORT_FLAG_NONE,
- error);
-}
-
/*****************************************************************************/
G_MODULE_EXPORT MMPlugin *
@@ -108,5 +73,4 @@ mm_plugin_linktop_class_init (MMPluginLinktopClass *klass)
MMPluginClass *plugin_class = MM_PLUGIN_CLASS (klass);
plugin_class->create_modem = create_modem;
- plugin_class->grab_port = grab_port;
}