diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2011-10-28 14:41:28 -0400 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-07-10 11:07:30 +0300 |
commit | ce6c42674901ded2a8e1d2fcd4d8f27274ef1a4f (patch) | |
tree | 7e445506cbe18d2e3404ecc47b45531181ec2cd1 | |
parent | 43fe95c9a6b5c2f90dd2c640c2a0d2750ab2f6e5 (diff) | |
download | metacity-ce6c42674901ded2a8e1d2fcd4d8f27274ef1a4f.tar.gz |
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
-rw-r--r-- | 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 e7ad9e36..0e3e6ae4 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: |