[gnome-themes-standard] adwaita: remove unused adwaita_render_from_assets_common()



commit a35f62f01f87822e31ac2f24f56830072503922d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Jun 10 13:49:02 2011 -0400

    adwaita: remove unused adwaita_render_from_assets_common()

 src/adwaita_utils.c |   41 -----------------------------------------
 src/adwaita_utils.h |    8 --------
 2 files changed, 0 insertions(+), 49 deletions(-)
---
diff --git a/src/adwaita_utils.c b/src/adwaita_utils.c
index ad3e348..bd70616 100644
--- a/src/adwaita_utils.c
+++ b/src/adwaita_utils.c
@@ -177,44 +177,3 @@ style_pattern_set_matrix (cairo_pattern_t *pattern,
     cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
 }
 
-gboolean
-adwaita_render_from_assets_common (GtkThemingEngine *engine,
-                                   cairo_t *cr,
-                                   gdouble x,
-                                   gdouble y,
-                                   gdouble width,
-                                   gdouble height)
-{
-  gboolean retval = FALSE;
-  GtkStateFlags state;
-  cairo_pattern_t *asset = NULL;
-  cairo_surface_t *surface = NULL;
-
-  state = gtk_theming_engine_get_state (engine);
-  gtk_theming_engine_get (engine, state, 
-                          "background-image", &asset,
-                          NULL);
-
-  if (asset != NULL)
-    cairo_pattern_get_surface (asset, &surface);
-
-  if (surface != NULL)
-    {
-      cairo_save (cr);
-
-      cairo_set_source_surface (cr, surface, x, y);
-      cairo_scale (cr,
-                   width / cairo_image_surface_get_width (surface),
-                   height / cairo_image_surface_get_height (surface));
-
-      cairo_paint (cr);
-
-      cairo_restore (cr);
-      retval = TRUE;
-    }
-
-  if (asset != NULL)
-    cairo_pattern_destroy (asset);
-
-  return retval;
-}
diff --git a/src/adwaita_utils.h b/src/adwaita_utils.h
index bfed047..d630a81 100644
--- a/src/adwaita_utils.h
+++ b/src/adwaita_utils.h
@@ -36,14 +36,6 @@ enum {
   SIDE_ALL    = 0xF
 };
 
-gboolean
-adwaita_render_from_assets_common (GtkThemingEngine *engine,
-                                   cairo_t *cr,
-                                   gdouble x,
-                                   gdouble y,
-                                   gdouble width,
-                                   gdouble height);
-
 void
 adwaita_trim_allocation_for_scale (GtkThemingEngine *engine,
                                    gdouble *x,



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