[titlebar] Remove dead code
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1e08a992b8
commit
4e066c4436
|
@ -66,14 +66,12 @@ titlebar_getbywin(xcb_window_t win)
|
||||||
|
|
||||||
/** Draw the titlebar content.
|
/** Draw the titlebar content.
|
||||||
* \param c the client
|
* \param c the client
|
||||||
* \todo stop duplicating the context
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
titlebar_draw(titlebar_t *titlebar)
|
titlebar_draw(titlebar_t *titlebar)
|
||||||
{
|
{
|
||||||
xcb_drawable_t dw = 0;
|
xcb_drawable_t dw = 0;
|
||||||
draw_context_t *ctx;
|
draw_context_t *ctx;
|
||||||
area_t geometry;
|
|
||||||
xcb_screen_t *s;
|
xcb_screen_t *s;
|
||||||
|
|
||||||
if(!titlebar || !titlebar->sw || !titlebar->position)
|
if(!titlebar || !titlebar->sw || !titlebar->position)
|
||||||
|
@ -82,7 +80,6 @@ titlebar_draw(titlebar_t *titlebar)
|
||||||
s = xcb_aux_get_screen(globalconf.connection,
|
s = xcb_aux_get_screen(globalconf.connection,
|
||||||
titlebar->sw->phys_screen);
|
titlebar->sw->phys_screen);
|
||||||
|
|
||||||
/** \todo move this in init */
|
|
||||||
switch(titlebar->position)
|
switch(titlebar->position)
|
||||||
{
|
{
|
||||||
case Off:
|
case Off:
|
||||||
|
@ -101,8 +98,6 @@ titlebar_draw(titlebar_t *titlebar)
|
||||||
dw,
|
dw,
|
||||||
titlebar->colors.fg,
|
titlebar->colors.fg,
|
||||||
titlebar->colors.bg);
|
titlebar->colors.bg);
|
||||||
geometry.width = titlebar->sw->geometry.height;
|
|
||||||
geometry.height = titlebar->sw->geometry.width;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ctx = draw_context_new(globalconf.connection, titlebar->sw->phys_screen,
|
ctx = draw_context_new(globalconf.connection, titlebar->sw->phys_screen,
|
||||||
|
@ -111,7 +106,6 @@ titlebar_draw(titlebar_t *titlebar)
|
||||||
titlebar->sw->drawable,
|
titlebar->sw->drawable,
|
||||||
titlebar->colors.fg,
|
titlebar->colors.fg,
|
||||||
titlebar->colors.bg);
|
titlebar->colors.bg);
|
||||||
geometry = titlebar->sw->geometry;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue