[anjuta] anjuta-plugin-handle: Use g_hash_table_remove_all instead of g_hash_table_foreach_remove.
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] anjuta-plugin-handle: Use g_hash_table_remove_all instead of g_hash_table_foreach_remove.
- Date: Mon, 26 Nov 2012 20:19:50 +0000 (UTC)
commit 49501f1a874e489948d0e2289c73153a998b12e4
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Sat Nov 24 01:06:31 2012 +0100
anjuta-plugin-handle: Use g_hash_table_remove_all instead of g_hash_table_foreach_remove.
https://bugzilla.gnome.org/show_bug.cgi?id=689054
libanjuta/anjuta-plugin-handle.c | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/libanjuta/anjuta-plugin-handle.c b/libanjuta/anjuta-plugin-handle.c
index a6fc5f9..764b4d9 100644
--- a/libanjuta/anjuta-plugin-handle.c
+++ b/libanjuta/anjuta-plugin-handle.c
@@ -711,12 +711,6 @@ anjuta_plugin_handle_set_resolve_pass (AnjutaPluginHandle *plugin_handle,
plugin_handle->priv->resolve_pass = resolve_pass;
}
-static gboolean
-g_hashtable_foreach_true (gpointer key, gpointer value, gpointer user_data)
-{
- return TRUE;
-}
-
void
anjuta_plugin_handle_unresolve_dependencies (AnjutaPluginHandle *plugin_handle)
{
@@ -724,11 +718,10 @@ anjuta_plugin_handle_unresolve_dependencies (AnjutaPluginHandle *plugin_handle)
g_return_if_fail (ANJUTA_IS_PLUGIN_HANDLE (plugin_handle));
priv = plugin_handle->priv;
-
- g_hash_table_foreach_remove (priv->dependencies, g_hashtable_foreach_true,
- NULL);
- g_hash_table_foreach_remove (priv->dependents, g_hashtable_foreach_true,
- NULL);
+
+ g_hash_table_remove_all (priv->dependencies);
+ g_hash_table_remove_all (priv->dependents);
+
priv->can_load = TRUE;
priv->resolve_pass = -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]