-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi list,

new day - new patch ;)

I somehow noticed that draw_context's depth member is unused and can be removed.

Cheers,
psychon
- --
"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQEcBAEBCAAGBQJKMODCAAoJECLkKOvLj8sGbFYH/2CGltIfpCxT+ELVLWLqS20o
vPz0GzyM0hy/arDybprARe88yYzl/ql2/jzvQ6OSWFvfa/8aQCQicKorCXEcwPxs
NX+l9erzMq0WfpuySJqbrcy3BvsWd18QTXzVYLbYk21oQWDCiMHZbrcbS4L0O1Y+
px/D/+hW5dc7se1eNUwbItOtzo3dc/xRqTAvGZWIboYZTtNYDIw9JKvp3XP3rLWT
94SNt6sj80OSgVKtZ34MJCSD1fnZssVJ+mfDiaHZqzhbM/2QQRZ9w0OHIjwnOoJr
lsFp8afSBknE/Ta71luncpfBQqlyWz2pPZoNa6gBVHIw5u1ROu+Zevn7pk3VYQE=
=TIKg
-----END PGP SIGNATURE-----
>From 3d602463e5f5c943c574f9c85b6a4d564b3099a2 Mon Sep 17 00:00:00 2001
From: Uli Schlachter <psyc...@znc.in>
Date: Wed, 3 Jun 2009 11:58:15 +0200
Subject: [PATCH] draw_context_t's depth member is unused, remove it

Signed-off-by: Uli Schlachter <psyc...@znc.in>
---
 draw.c |    1 -
 draw.h |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/draw.c b/draw.c
index db9cdb3..bea8ece 100644
--- a/draw.c
+++ b/draw.c
@@ -204,7 +204,6 @@ draw_context_init(draw_context_t *d, int phys_screen,
     d->phys_screen = phys_screen;
     d->width = width;
     d->height = height;
-    d->depth = s->root_depth;
     d->visual = draw_screen_default_visual(s);
     d->pixmap = px;
     d->surface = cairo_xcb_surface_create(globalconf.connection, px, d->visual, width, height);
diff --git a/draw.h b/draw.h
index ea74a9e..5f7c84b 100644
--- a/draw.h
+++ b/draw.h
@@ -95,7 +95,6 @@ typedef struct
     uint16_t width;
     uint16_t height;
     int phys_screen;
-    uint8_t depth;
     cairo_t *cr;
     cairo_surface_t *surface;
     PangoLayout *layout;
-- 
1.6.3.1

Reply via email to