From 2881930e68b774818a1afff3ba8d345dad6cb941 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 27 May 2011 04:21:40 +0200 Subject: [PATCH] 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 b7e241a148..3f6af6666a 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 ca0fee5606..395bd295ef 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; }