[evince] Remove unused variables and functions



commit 733c44c3bac3015ca289b24cee88760b6438fba9
Author: Jason Crain <jcrain inspiresomeone us>
Date:   Sun Feb 2 09:48:41 2020 -0700

    Remove unused variables and functions

 libview/ev-page-accessible.c  |  2 +-
 shell/ev-sidebar-thumbnails.c | 25 -------------------------
 2 files changed, 1 insertion(+), 26 deletions(-)
---
diff --git a/libview/ev-page-accessible.c b/libview/ev-page-accessible.c
index ea8d4862..18016fb0 100644
--- a/libview/ev-page-accessible.c
+++ b/libview/ev-page-accessible.c
@@ -1055,7 +1055,7 @@ ev_page_accessible_scroll_substring_to (AtkText       *text,
        GdkPoint start_point, end_point;
        gdouble hpage_size, vpage_size;
        EvRectangle *areas = NULL;
-       guint pos, n_areas = 0;
+       guint n_areas = 0;
 
        if (end_pos < start_pos)
                return FALSE;
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index c903e87f..b488dd37 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -577,9 +577,6 @@ adjustment_changed_cb (EvSidebarThumbnails *sidebar_thumbnails)
        GtkTreePath *path = NULL;
        GtkTreePath *path2 = NULL;
        gdouble page_size;
-       gdouble value;
-       gint wy1;
-       gint wy2;
 
        /* Widget is not currently visible */
        if (!gtk_widget_get_mapped (GTK_WIDGET (sidebar_thumbnails)))
@@ -590,8 +587,6 @@ adjustment_changed_cb (EvSidebarThumbnails *sidebar_thumbnails)
        if (page_size == 0)
                return;
 
-       value = gtk_adjustment_get_value (priv->vadjustment);
-       
        if (priv->icon_view) {
                if (! gtk_widget_get_realized (priv->icon_view))
                        return;
@@ -651,26 +646,6 @@ ev_sidebar_thumbnails_fill_model (EvSidebarThumbnails *sidebar_thumbnails)
        }
 }
 
-static void
-ev_sidebar_tree_selection_changed (GtkTreeSelection *selection,
-                                  EvSidebarThumbnails *ev_sidebar_thumbnails)
-{
-       EvSidebarThumbnailsPrivate *priv = ev_sidebar_thumbnails->priv;
-       GtkTreePath *path;
-       GtkTreeIter iter;
-       int page;
-
-       if (!gtk_tree_selection_get_selected (selection, NULL, &iter))
-               return;
-
-       path = gtk_tree_model_get_path (GTK_TREE_MODEL (priv->list_store),
-                                       &iter);
-       page = gtk_tree_path_get_indices (path)[0];
-       gtk_tree_path_free (path);
-
-       ev_document_model_set_page (priv->model, page);
-}
-
 static void
 ev_sidebar_icon_selection_changed (GtkIconView         *icon_view,
                                   EvSidebarThumbnails *ev_sidebar_thumbnails)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]