summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Snyder <dsnyder@Davids-MacBook-Pro.local>2012-03-11 23:28:49 -0700
committerDavid Snyder <dsnyder@Davids-MacBook-Pro.local>2012-03-11 23:28:49 -0700
commite4f0e5b8b207cc74b46d380bc279e78db031b66a (patch)
treeb7fab7f6bee5cca98b69478cb24339b64b3272b9
parented5b88f64ecec95d967a42babc86a12a35d77fea (diff)
Removed dead some commented and dead code
-rw-r--r--src/libcompositewm/xtoq.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/libcompositewm/xtoq.c b/src/libcompositewm/xtoq.c
index 8635c55..a4b18d5 100644
--- a/src/libcompositewm/xtoq.c
+++ b/src/libcompositewm/xtoq.c
@@ -111,7 +111,6 @@ xtoq_get_image(xtoq_context_t *context) {
xcb_get_geometry_reply_t *geom_reply;
- //image_data_t img_data;
xcb_image_t *image;
geom_reply = _xtoq_get_window_geometry(context->conn, context->window);
@@ -138,7 +137,6 @@ xtoq_get_image(xtoq_context_t *context) {
free(geom_reply);
-/* printf("Returning initial image with x=%d y=%d w=%d h=%d\n", xtoq_image->x, xtoq_image->y, xtoq_image->width, xtoq_image->height); */
return xtoq_image;
}
@@ -158,14 +156,8 @@ xtoq_start_event_loop (xtoq_context_t *context,
xtoq_image_t *
test_xtoq_get_image(xtoq_context_t *context) {
- // printf("Top of test get image\n");
- //xcb_get_geometry_reply_t *geom_reply;
-
- //image_data_t img_data;
xcb_image_t *image;
- //geom_reply = _xtoq_get_window_geometry(context.conn, context.window);
-
xcb_flush(context->conn);
/* Get the image of the root window */
image = xcb_image_get(context->conn,
@@ -176,7 +168,6 @@ test_xtoq_get_image(xtoq_context_t *context) {
context->damaged_height,
(unsigned int) ~0L,
XCB_IMAGE_FORMAT_Z_PIXMAP);
- //xtoq_image_t * xtoq_image;
//FIXME - Calculate memory size correctly
xtoq_image_t * xtoq_image = (xtoq_image_t *) malloc(10 * sizeof (xtoq_image_t));
@@ -187,16 +178,13 @@ test_xtoq_get_image(xtoq_context_t *context) {
xtoq_image->width = context->damaged_width;
xtoq_image->height = context->damaged_height;
- //printf("Returning image with x=%d y=%d w=%d h=%d\n", xtoq_image->x, xtoq_image->y, xtoq_image->width, xtoq_image->height);
-
- //free(geom_reply);
return xtoq_image;
}
void
xtoq_image_destroy(xtoq_image_t * xtoq_image){
- //FIXME - is this all that needs to be done?
+
xcb_image_destroy(xtoq_image->image);
free(xtoq_image);
}