plugin: don't provide an additional method to cancel the probing

We'll do it with a GCancellable.
This commit is contained in:
Aleksander Morgado
2012-07-10 13:14:13 +02:00
parent d84cecac99
commit cf48d3daa7
2 changed files with 0 additions and 23 deletions

View File

@@ -578,26 +578,6 @@ out:
g_object_unref (async_result);
}
void
mm_plugin_supports_port_cancel (MMPlugin *plugin,
const char *subsys,
const char *name)
{
MMPlugin *self = MM_PLUGIN (plugin);
MMPluginPrivate *priv = MM_PLUGIN_GET_PRIVATE (self);
MMPortProbe *probe;
gchar *key;
key = get_key (subsys, name);
probe = g_hash_table_lookup (priv->tasks, key);
if (probe) {
mm_port_probe_run_cancel (probe);
g_hash_table_remove (priv->tasks, key);
}
g_free (key);
}
/*****************************************************************************/
MMBaseModem *

View File

@@ -104,9 +104,6 @@ void mm_plugin_supports_port (MMPlugin *plugin,
MMPluginSupportsResult mm_plugin_supports_port_finish (MMPlugin *plugin,
GAsyncResult *result,
GError **error);
void mm_plugin_supports_port_cancel (MMPlugin *plugin,
const char *subsys,
const char *name);
MMBaseModem *mm_plugin_create_modem (MMPlugin *plugin,
GObject *device,