[mutter/wip/cairo: 12/15] theme: Remove unused entry points



commit efa37f6255737fe613a21d8ab658ff51e9a5f6ca
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Mar 11 15:40:42 2012 -0400

    theme: Remove unused entry points
    
    meta_draw_op_draw, meta_draw_op_draw_with_style, meta_draw_op_list_draw,
    and meta_frame_style_draw were all unused
    
    https://bugzilla.gnome.org/show_bug.cgi?id=662962

 src/ui/theme-private.h |   32 -------------------------
 src/ui/theme.c         |   60 ------------------------------------------------
 2 files changed, 0 insertions(+), 92 deletions(-)
---
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index 7805dd5..f5b95ce 100644
--- a/src/ui/theme-private.h
+++ b/src/ui/theme-private.h
@@ -968,29 +968,10 @@ 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,
-                                             GtkWidget           *widget,
-                                             cairo_t             *cr,
-                                             const MetaDrawInfo  *info,
-                                             /* logical region being drawn */
-                                             MetaRectangle        logical_region);
 
 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,
@@ -1026,19 +1007,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 3d88b53..7821dac 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -3607,35 +3607,6 @@ meta_draw_op_draw_with_env (const MetaDrawOp    *op,
   gtk_style_context_restore (style_gtk);
 }
 
-void
-meta_draw_op_draw_with_style (const MetaDrawOp    *op,
-                              GtkStyleContext     *style_gtk,
-                              GtkWidget           *widget,
-                              cairo_t             *cr,
-                              const MetaDrawInfo  *info,
-                              MetaRectangle        logical_region)
-{
-  MetaPositionExprEnv env;
-
-  fill_env (&env, info, logical_region);
-
-  meta_draw_op_draw_with_env (op, style_gtk, widget, cr,
-                              info, logical_region,
-                              &env);
-
-}
-
-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)
  *
@@ -3735,18 +3706,6 @@ meta_draw_op_list_draw_with_style  (const MetaDrawOpList *op_list,
 }
 
 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)
 {
@@ -4368,25 +4327,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)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]