[gtk+] tests: Remove unused variables
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Remove unused variables
- Date: Fri, 27 May 2011 14:19:31 +0000 (UTC)
commit 2881930e68b774818a1afff3ba8d345dad6cb941
Author: Benjamin Otte <otte redhat com>
Date: Fri May 27 04:21:40 2011 +0200
tests: Remove unused variables
tests/print-editor.c | 2 --
tests/testprint.c | 5 ++---
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/tests/print-editor.c b/tests/print-editor.c
index b7e241a..3f6af66 100644
--- a/tests/print-editor.c
+++ b/tests/print-editor.c
@@ -549,7 +549,6 @@ preview_cb (GtkPrintOperation *op,
GtkWindow *parent,
gpointer data)
{
- GtkPrintSettings *settings;
GtkWidget *window, *close, *page, *hbox, *vbox, *da;
gdouble width, height;
cairo_t *cr;
@@ -559,7 +558,6 @@ preview_cb (GtkPrintOperation *op,
pop = g_new0 (PreviewOp, 1);
pop->data = print_data;
- settings = gtk_print_operation_get_print_settings (op);
width = 200;
height = 300;
diff --git a/tests/testprint.c b/tests/testprint.c
index ca0fee5..395bd29 100644
--- a/tests/testprint.c
+++ b/tests/testprint.c
@@ -98,7 +98,6 @@ int
main (int argc, char **argv)
{
GtkPrintOperation *print;
- GtkPrintOperationResult res;
TestPrintFileOperation *print_file;
gtk_init (&argc, &argv);
@@ -110,13 +109,13 @@ main (int argc, char **argv)
gtk_print_operation_set_export_filename (print, "test.pdf");
g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL);
g_signal_connect (print, "request_page_setup", G_CALLBACK (request_page_setup), NULL);
- res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_EXPORT, NULL, NULL);
+ gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_EXPORT, NULL, NULL);
/* Test subclassing of GtkPrintOperation */
print_file = test_print_file_operation_new ("testprint.c");
test_print_file_operation_set_font_size (print_file, 12.0);
gtk_print_operation_set_export_filename (GTK_PRINT_OPERATION (print_file), "test2.pdf");
- res = gtk_print_operation_run (GTK_PRINT_OPERATION (print_file), GTK_PRINT_OPERATION_ACTION_EXPORT, NULL, NULL);
+ gtk_print_operation_run (GTK_PRINT_OPERATION (print_file), GTK_PRINT_OPERATION_ACTION_EXPORT, NULL, NULL);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]