[gthumb] adjust contrast: removed unused variable



commit b4dcd7dfa283418252e0128689518ff0a4ea0b14
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Sep 21 13:09:14 2013 +0200

    adjust contrast: removed unused variable

 .../file_tools/gth-file-tool-adjust-contrast.c     |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-adjust-contrast.c 
b/extensions/file_tools/gth-file-tool-adjust-contrast.c
index 630b7db..5d828d6 100644
--- a/extensions/file_tools/gth-file-tool-adjust-contrast.c
+++ b/extensions/file_tools/gth-file-tool-adjust-contrast.c
@@ -242,8 +242,6 @@ gth_file_tool_adjust_contrast_activate (GthFileTool *base)
 {
        GtkWidget          *window;
        GtkWidget          *viewer_page;
-       GtkWidget          *viewer;
-       cairo_surface_t    *image;
        AdjustContrastData *adjust_contrast_data;
        GthTask            *task;
 
@@ -252,11 +250,6 @@ gth_file_tool_adjust_contrast_activate (GthFileTool *base)
        if (! GTH_IS_IMAGE_VIEWER_PAGE (viewer_page))
                return;
 
-       viewer = gth_image_viewer_page_get_image_viewer (GTH_IMAGE_VIEWER_PAGE (viewer_page));
-       image = gth_image_viewer_get_current_image (GTH_IMAGE_VIEWER (viewer));
-       if (image == NULL)
-               return;
-
        adjust_contrast_data = g_new0 (AdjustContrastData, 1);
        adjust_contrast_data->viewer_page = g_object_ref (viewer_page);
        adjust_contrast_data->lowest = NULL;


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