From 6900128b2f51e670146107c50abf3ee227123acf Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 11 Mar 2012 15:40:42 -0400 Subject: [PATCH] theme: Remove unused entry points meta_draw_op_draw, meta_draw_op_list_draw, and meta_frame_style_draw were all unused https://bugzilla.gnome.org/show_bug.cgi?id=671104 --- src/ui/theme-private.h | 24 ------------------------ src/ui/theme.c | 42 ------------------------------------------ 2 files changed, 66 deletions(-) diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h index 8ee14f986..073f56db7 100644 --- a/src/ui/theme-private.h +++ b/src/ui/theme-private.h @@ -966,12 +966,6 @@ void meta_color_spec_render (MetaColorSpec *spec, MetaDrawOp* meta_draw_op_new (MetaDrawType type); void meta_draw_op_free (MetaDrawOp *op); -void meta_draw_op_draw (const MetaDrawOp *op, - GtkWidget *widget, - cairo_t *cr, - const MetaDrawInfo *info, - /* logical region being drawn */ - MetaRectangle logical_region); void meta_draw_op_draw_with_style (const MetaDrawOp *op, GtkStyleContext *style_gtk, @@ -984,11 +978,6 @@ void meta_draw_op_draw_with_style (const MetaDrawOp *op, MetaDrawOpList* meta_draw_op_list_new (int n_preallocs); void meta_draw_op_list_ref (MetaDrawOpList *op_list); void meta_draw_op_list_unref (MetaDrawOpList *op_list); -void meta_draw_op_list_draw (const MetaDrawOpList *op_list, - GtkWidget *widget, - cairo_t *cr, - const MetaDrawInfo *info, - MetaRectangle rect); void meta_draw_op_list_draw_with_style (const MetaDrawOpList *op_list, GtkStyleContext *style_gtk, GtkWidget *widget, @@ -1020,19 +1009,6 @@ MetaFrameStyle* meta_frame_style_new (MetaFrameStyle *parent); void meta_frame_style_ref (MetaFrameStyle *style); void meta_frame_style_unref (MetaFrameStyle *style); -void meta_frame_style_draw (MetaFrameStyle *style, - GtkWidget *widget, - cairo_t *cr, - const MetaFrameGeometry *fgeom, - int client_width, - int client_height, - PangoLayout *title_layout, - int text_height, - MetaButtonState button_states[META_BUTTON_TYPE_LAST], - GdkPixbuf *mini_icon, - GdkPixbuf *icon); - - void meta_frame_style_draw_with_style (MetaFrameStyle *style, GtkStyleContext *style_gtk, GtkWidget *widget, diff --git a/src/ui/theme.c b/src/ui/theme.c index d592ecd8a..e44246a17 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -4107,17 +4107,6 @@ meta_draw_op_draw_with_style (const MetaDrawOp *op, } -void -meta_draw_op_draw (const MetaDrawOp *op, - GtkWidget *widget, - cairo_t *cr, - const MetaDrawInfo *info, - MetaRectangle logical_region) -{ - meta_draw_op_draw_with_style (op, gtk_widget_get_style_context (widget), - widget, cr, info, logical_region); -} - /** * meta_draw_op_list_new: (skip) * @@ -4228,18 +4217,6 @@ meta_draw_op_list_draw_with_style (const MetaDrawOpList *op_list, cairo_restore (cr); } -void -meta_draw_op_list_draw (const MetaDrawOpList *op_list, - GtkWidget *widget, - cairo_t *cr, - const MetaDrawInfo *info, - MetaRectangle rect) - -{ - meta_draw_op_list_draw_with_style (op_list, gtk_widget_get_style_context (widget), widget, - cr, info, rect); -} - void meta_draw_op_list_append (MetaDrawOpList *op_list, MetaDrawOp *op) @@ -4862,25 +4839,6 @@ meta_frame_style_draw_with_style (MetaFrameStyle *style, } } -void -meta_frame_style_draw (MetaFrameStyle *style, - GtkWidget *widget, - cairo_t *cr, - const MetaFrameGeometry *fgeom, - int client_width, - int client_height, - PangoLayout *title_layout, - int text_height, - MetaButtonState button_states[META_BUTTON_TYPE_LAST], - GdkPixbuf *mini_icon, - GdkPixbuf *icon) -{ - meta_frame_style_draw_with_style (style, gtk_widget_get_style_context (widget), widget, - cr, fgeom, client_width, client_height, - title_layout, text_height, - button_states, mini_icon, icon); -} - MetaFrameStyleSet* meta_frame_style_set_new (MetaFrameStyleSet *parent) {