Skip to content
Myr

render: remove dead code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent e5f63fb · Browse files · 1 file+0 added−23 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−23 removed

  • other:+0 added−23 removed

1 file+0 added−23 removed

modified:render.c-23 removed
175 unmodified lines
176 cairo_rectangle(buf->cairo, x - 2, y + 2, buf->width - 2 * (x - 2), y_advance - 4);177 cairo_fill(buf->cairo);178 }179180#if 0181 /* Slightly different background on every other item */182 else if ((y - y_base) % (2 * y_advance) == 0) {183 double f = 0.1;184 cairo_set_source_rgba(buf->cairo, 0.067+f, 0.067+f, 0.067+f, 0.9);185 cairo_set_operator(buf->cairo, CAIRO_OPERATOR_SOURCE);186 cairo_rectangle(buf->cairo, x - 2, y + 2, buf->width - 2 * (x - 2), y_advance - 4);187 cairo_fill(buf->cairo);188 }189#endif190180 /* Application title */181 int cur_x = x;182 render_match_text(183 buf, &cur_x, y, y_advance,184 match->application->title, match->start_title, match_length,185 render->regular_font, 0xffffffff, 0xcc9393ff);186198#if 0199 /* Comment, if available */200 if (match->application->comment != NULL) {201 char comment[2 + strlen(match->application->comment) + 1 + 1];202 sprintf(comment, " (%s)", match->application->comment);203204 render_match_text(205 buf, &cur_x, y, y_advance,206 comment, match->start_comment + 2,207 match_length, render->regular_font, 0xffffffff, 0xffff00ff);208 }209#endif187 y += y_advance;188 }189}190
17 unmodified lines