[metacity] libmetacity: remove unused RECTANGLE code
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: remove unused RECTANGLE code
- Date: Thu, 7 Jul 2016 12:18:39 +0000 (UTC)
commit 3520b147a371bd3b803d8b1dfc50c33721c19286
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Oct 28 14:41:28 2011 -0400
libmetacity: remove unused RECTANGLE code
draw_op_as_pixbuf is not not used with META_DRAW_RECTANGLE.
https://bugzilla.gnome.org/show_bug.cgi?id=662962
libmetacity/meta-draw-op.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/libmetacity/meta-draw-op.c b/libmetacity/meta-draw-op.c
index fbdd7d6..ae0d092 100644
--- a/libmetacity/meta-draw-op.c
+++ b/libmetacity/meta-draw-op.c
@@ -399,20 +399,6 @@ draw_op_as_pixbuf (const MetaDrawOp *op,
break;
case META_DRAW_RECTANGLE:
- if (op->data.rectangle.filled)
- {
- GdkRGBA color;
-
- meta_color_spec_render (op->data.rectangle.color_spec,
- context,
- &color);
-
- pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
- FALSE,
- 8, width, height);
-
- gdk_pixbuf_fill (pixbuf, GDK_COLOR_RGBA (color));
- }
break;
case META_DRAW_ARC:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]