]> Pileus Git - ~andy/gtk/commitdiff
filechooser: Fix set-but-not-used warning from gcc
authorBenjamin Otte <otte@redhat.com>
Sat, 9 Jul 2011 19:24:41 +0000 (21:24 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 9 Jul 2011 19:24:41 +0000 (21:24 +0200)
gtk/gtkfilechooserdefault.c

index aab4b04b04a36175081826d059d4b8c1aaf8ba3d..24904d397a2429f45c61de74c0213f24940f4208 100644 (file)
@@ -1452,7 +1452,6 @@ get_file_info_finished (GCancellable *cancellable,
                        const GError *error,
                        gpointer      data)
 {
-  gint pos = -1;
   gboolean cancelled = g_cancellable_is_cancelled (cancellable);
   GdkPixbuf *pixbuf;
   GtkTreePath *path;
@@ -1465,7 +1464,6 @@ get_file_info_finished (GCancellable *cancellable,
     /* Handle doesn't exist anymore in the model */
     goto out;
 
-  pos = gtk_tree_path_get_indices (path)[0];
   gtk_tree_model_get_iter (GTK_TREE_MODEL (request->impl->shortcuts_model),
                           &iter, path);
   gtk_tree_path_free (path);