From f64e4aa7e0d79679631bab72721d55a304ba5a82 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 14 Feb 2021 22:42:33 -0800 Subject: [PATCH] psppire-output-view: Remove more dead code. --- src/ui/gui/psppire-output-view.c | 19 ------------------- src/ui/gui/psppire-output-view.h | 3 --- 2 files changed, 22 deletions(-) diff --git a/src/ui/gui/psppire-output-view.c b/src/ui/gui/psppire-output-view.c index 2d4a873535..df67b65236 100644 --- a/src/ui/gui/psppire-output-view.c +++ b/src/ui/gui/psppire-output-view.c @@ -873,25 +873,6 @@ psppire_output_view_destroy (struct psppire_output_view *view) free (view); } -void -psppire_output_view_clear (struct psppire_output_view *view) -{ - size_t i; - - view->max_width = 0; - view->y = 0; - - for (i = 0; i < view->n_items; i++) - { - gtk_container_remove (GTK_CONTAINER (view->output), - view->items[i].drawing_area); - output_item_unref (view->items[i].item); - } - free (view->items); - view->items = NULL; - view->n_items = view->allocated_items = 0; -} - /* Export. */ void diff --git a/src/ui/gui/psppire-output-view.h b/src/ui/gui/psppire-output-view.h index a54b953cfc..25cdcd59ff 100644 --- a/src/ui/gui/psppire-output-view.h +++ b/src/ui/gui/psppire-output-view.h @@ -26,7 +26,6 @@ struct string_map; struct psppire_output_view *psppire_output_view_new (GtkLayout *output, GtkTreeView *overview); -void psppire_output_view_clear (struct psppire_output_view *); void psppire_output_view_destroy (struct psppire_output_view *); void psppire_output_view_put (struct psppire_output_view *, @@ -37,6 +36,4 @@ void psppire_output_view_export (struct psppire_output_view *, void psppire_output_view_print (struct psppire_output_view *, GtkWindow *parent_window); -void psppire_output_view_register_driver (struct psppire_output_view *); - #endif /* psppire-output-view.h */ -- 2.30.2