[gimp/metadata-browser] plugin-browser: Remove dead assignments (and variable)
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] plugin-browser: Remove dead assignments (and variable)
- Date: Fri, 2 Dec 2011 02:03:03 +0000 (UTC)
commit e3940fbf764cfff9150a23bebd46501073798246
Author: Mukund Sivaraman <muks banu com>
Date: Mon Oct 3 13:15:23 2011 +0530
plugin-browser: Remove dead assignments (and variable)
plug-ins/common/plugin-browser.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/plug-ins/common/plugin-browser.c b/plug-ins/common/plugin-browser.c
index ae73253..7201271 100644
--- a/plug-ins/common/plugin-browser.c
+++ b/plug-ins/common/plugin-browser.c
@@ -258,7 +258,6 @@ get_parent (PluginBrowser *browser,
GtkTreeIter last_parent;
gchar *tmp_ptr;
gchar *str_ptr;
- const gchar *leaf_ptr;
GtkTreeStore *tree_store;
if (! mpath)
@@ -281,7 +280,6 @@ get_parent (PluginBrowser *browser,
if (str_ptr == NULL)
{
- leaf_ptr = mpath;
gtk_tree_store_append (tree_store, parent, NULL);
gtk_tree_store_set (tree_store, parent,
TREE_COLUMN_MPATH, mpath,
@@ -290,8 +288,9 @@ get_parent (PluginBrowser *browser,
}
else
{
- leaf_ptr = g_strdup (str_ptr + 1);
+ const gchar *leaf_ptr;
+ leaf_ptr = g_strdup (str_ptr + 1);
*str_ptr = '\0';
get_parent (browser, tmp_ptr, &last_parent);
@@ -315,7 +314,6 @@ insert_into_tree_view (PluginBrowser *browser,
gchar *labels[3];
gchar *str_ptr;
gchar *tmp_ptr;
- gchar *leaf_ptr;
GtkTreeIter parent, iter;
GtkTreeStore *tree_store;
@@ -332,8 +330,6 @@ insert_into_tree_view (PluginBrowser *browser,
return; /* No node */
}
- leaf_ptr = g_strdup (str_ptr + 1);
-
*str_ptr = '\0';
/* printf("inserting %s...\n",menu_str); */
@@ -356,8 +352,6 @@ insert_into_tree_view (PluginBrowser *browser,
TREE_COLUMN_DATE_STRING, xtimestr,
TREE_COLUMN_PINFO, pinfo,
-1);
-
- g_free (leaf_ptr);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]