remove dead code

This was a left-over of commit 9d68d780e2
next
Michael Stapelberg 2012-05-09 20:00:46 +02:00
parent f229570bbc
commit 62d3329906
1 changed files with 0 additions and 15 deletions

View File

@ -270,7 +270,6 @@ int main(int argc, char *argv[]) {
{0, 0, 0, 0}
};
int option_index = 0, opt;
xcb_void_cookie_t colormap_cookie;
setlocale(LC_ALL, "");
@ -541,20 +540,6 @@ int main(int argc, char *argv[]) {
cookie = xcb_change_window_attributes_checked(conn, root, mask, values);
check_error(conn, cookie, "Another window manager seems to be running");
/* By now we already checked for replies once, so lets see if colormap
* creation worked (if requested). */
if (colormap != root_screen->default_colormap) {
xcb_generic_error_t *error = xcb_request_check(conn, colormap_cookie);
if (error != NULL) {
ELOG("Could not create ColorMap for 32 bit visual, falling back to X11 default.\n");
root_depth = root_screen->root_depth;
visual_id = root_screen->root_visual;
colormap = root_screen->default_colormap;
DLOG("root_depth = %d, visual_id = 0x%08x.\n", root_depth, visual_id);
free(error);
}
}
xcb_get_geometry_reply_t *greply = xcb_get_geometry_reply(conn, gcookie, NULL);
if (greply == NULL) {
ELOG("Could not get geometry of the root window, exiting\n");