[gnome-utils] screenshot: cleanup unused code and variables



commit 7cfeae9fea0303bed4028262bcc7490586f8e89d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Sep 26 12:02:53 2011 -0400

    screenshot: cleanup unused code and variables

 gnome-screenshot/cheese-flash.c      |    2 --
 gnome-screenshot/screenshot-dialog.c |    2 --
 gnome-screenshot/screenshot-save.c   |   21 ---------------------
 gnome-screenshot/screenshot-save.h   |    2 --
 gnome-screenshot/screenshot-utils.c  |    1 -
 5 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/gnome-screenshot/cheese-flash.c b/gnome-screenshot/cheese-flash.c
index 58950fc..9e3ec4d 100644
--- a/gnome-screenshot/cheese-flash.c
+++ b/gnome-screenshot/cheese-flash.c
@@ -185,8 +185,6 @@ cheese_flash_fire (CheeseFlash  *flash,
                    GdkRectangle *rect)
 {
   CheeseFlashPrivate *flash_priv = CHEESE_FLASH_GET_PRIVATE (flash);
-  GdkScreen          *screen;
-  int                 monitor;
   GtkWindow *flash_window = flash_priv->window;
 
   if (flash_priv->flash_timeout_tag > 0)
diff --git a/gnome-screenshot/screenshot-dialog.c b/gnome-screenshot/screenshot-dialog.c
index dc09a8e..eca8cc4 100644
--- a/gnome-screenshot/screenshot-dialog.c
+++ b/gnome-screenshot/screenshot-dialog.c
@@ -57,7 +57,6 @@ on_preview_draw (GtkWidget      *drawing_area,
 {
   ScreenshotDialog *dialog = data;
   GdkPixbuf *pixbuf = NULL;
-  gboolean free_pixbuf = FALSE;
 
   /* Stolen from GtkImage.  I really should just make the drawing area an
    * image some day */
@@ -77,7 +76,6 @@ on_preview_draw (GtkWidget      *drawing_area,
 				      (GtkIconSize) -1,
 				      drawing_area,
 				      "gtk-image");
-      free_pixbuf = TRUE;
       gtk_icon_source_free (source);
     }
   else
diff --git a/gnome-screenshot/screenshot-save.c b/gnome-screenshot/screenshot-save.c
index fa0b016..85aa9b9 100644
--- a/gnome-screenshot/screenshot-save.c
+++ b/gnome-screenshot/screenshot-save.c
@@ -285,24 +285,3 @@ screenshot_save_get_filename (void)
 {
   return tmp_filename;
 }
-
-gchar *
-screenshot_sanitize_filename (const char *filename)
-{
-  char *retval, *p;
-
-  g_assert (filename);
-  g_assert (g_utf8_validate (filename, -1, NULL));
-
-  retval = g_uri_escape_string (filename,
-                                "/",
-                                TRUE);
-
-  for (p = retval; *p != '\000'; p = g_utf8_next_char (p))
-    {
-      if (*p == G_DIR_SEPARATOR)
-	*p = '-';
-    }
-
-  return retval;
-}
diff --git a/gnome-screenshot/screenshot-save.h b/gnome-screenshot/screenshot-save.h
index efa53b4..941ae37 100644
--- a/gnome-screenshot/screenshot-save.h
+++ b/gnome-screenshot/screenshot-save.h
@@ -29,7 +29,5 @@ void        screenshot_save_start        (GdkPixbuf    *pixbuf,
 					  gpointer      user_data);
 const char *screenshot_save_get_filename (void);
 void        screenshot_set_icc_profile   (const gchar  *icc_profile);
-gchar      *screenshot_sanitize_filename (const char   *filename);
-
 
 #endif /* __SCREENSHOT_SAVE_H__ */
diff --git a/gnome-screenshot/screenshot-utils.c b/gnome-screenshot/screenshot-utils.c
index 198d4d8..b41ee34 100644
--- a/gnome-screenshot/screenshot-utils.c
+++ b/gnome-screenshot/screenshot-utils.c
@@ -449,7 +449,6 @@ screenshot_select_area_async (SelectAreaCallback callback)
 {
   GdkCursor               *cursor;
   select_area_filter_data  data;
-  GdkRectangle *rectangle;
   CallbackData *cb_data;
 
   data.rect.x = 0;



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