[gtk+] treemodelsort: eliminate unread variable assigments
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treemodelsort: eliminate unread variable assigments
- Date: Mon, 22 Aug 2011 19:44:49 +0000 (UTC)
commit b31c3f1c1f010d84536a041374749caecef2f372
Author: Kristian Rietveld <kris gtk org>
Date: Sat Aug 20 11:16:29 2011 +0200
treemodelsort: eliminate unread variable assigments
Courtesy of scan-build/clang.
gtk/gtktreemodelsort.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c
index 82396a5..0050b57 100644
--- a/gtk/gtktreemodelsort.c
+++ b/gtk/gtktreemodelsort.c
@@ -1127,7 +1127,6 @@ gtk_tree_model_sort_rows_reordered (GtkTreeModel *s_model,
return;
gtk_tree_model_get_iter (GTK_TREE_MODEL (data), &iter, path);
- level = SORT_LEVEL (iter.user_data);
elt = SORT_ELT (iter.user_data2);
if (!elt->children)
@@ -1376,14 +1375,12 @@ gtk_tree_model_sort_iter_next (GtkTreeModel *tree_model,
{
GtkTreeModelSort *tree_model_sort = (GtkTreeModelSort *) tree_model;
GtkTreeModelSortPrivate *priv = tree_model_sort->priv;
- SortLevel *level;
SortElt *elt;
GSequenceIter *siter;
g_return_val_if_fail (priv->child_model != NULL, FALSE);
g_return_val_if_fail (priv->stamp == iter->stamp, FALSE);
- level = iter->user_data;
elt = iter->user_data2;
siter = g_sequence_iter_next (elt->siter);
@@ -1403,14 +1400,12 @@ gtk_tree_model_sort_iter_previous (GtkTreeModel *tree_model,
{
GtkTreeModelSort *tree_model_sort = (GtkTreeModelSort *) tree_model;
GtkTreeModelSortPrivate *priv = tree_model_sort->priv;
- SortLevel *level;
SortElt *elt;
GSequenceIter *siter;
g_return_val_if_fail (priv->child_model != NULL, FALSE);
g_return_val_if_fail (priv->stamp == iter->stamp, FALSE);
- level = iter->user_data;
elt = iter->user_data2;
siter = g_sequence_iter_prev (elt->siter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]