Commit 8cb59a93 authored by Cosimo Cecchi's avatar Cosimo Cecchi

screenshot: cleanup unused code and variables

parent 65c4ce64
......@@ -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)
......
......@@ -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
......
......@@ -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;
}
......@@ -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__ */
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment