[gnome-shell] [St] Remove unused width/height from st_theme_node_transition_paint



commit 7fa9e88294da89cb0feed1506ee6b88422048f19
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Sat Jul 31 12:31:32 2010 +0200

    [St] Remove unused width/height from st_theme_node_transition_paint
    
    We query the texture size here but never actually use it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=625713

 src/st/st-theme-node-transition.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-theme-node-transition.c b/src/st/st-theme-node-transition.c
index 2dff2fd..78be966 100644
--- a/src/st/st-theme-node-transition.c
+++ b/src/st/st-theme-node-transition.c
@@ -282,7 +282,6 @@ st_theme_node_transition_paint (StThemeNodeTransition *transition,
 {
   StThemeNodeTransitionPrivate *priv = transition->priv;
 
-  guint width, height;
   CoglColor constant;
   float tex_coords[] = {
     0.0, 0.0, 1.0, 1.0,
@@ -307,9 +306,6 @@ st_theme_node_transition_paint (StThemeNodeTransition *transition,
                                                paint_opacity);
     }
 
-  width = cogl_texture_get_width (priv->old_texture);
-  height = cogl_texture_get_height (priv->old_texture);
-
   cogl_color_set_from_4ub (&constant, 0, 0, 0,
                            clutter_alpha_get_alpha (priv->alpha) * paint_opacity);
 



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