From 31109df5fdf0e69c3b097296f34ed135bd932c98 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 13 Dec 2011 15:53:02 -0800 Subject: [PATCH] Dead code removal Change-Id: Iee409b5576cd6f4d011a85abf814f3825403783c Signed-off-by: Jeremy Huddleston --- multiVis.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/multiVis.c b/multiVis.c index 086aacd..a445129 100644 --- a/multiVis.c +++ b/multiVis.c @@ -386,25 +386,11 @@ ReadRegionsInList(Display *disp, Visual *fakeVis, int depth, int format, XImage *reg_image,*ximage ; int srcRect_x,srcRect_y,srcRect_width,srcRect_height ; - int rem ; int bytes_per_line; int bitmap_unit; bitmap_unit = sizeof (long); - if (format == ZPixmap) - bytes_per_line = width*depth/8; - else - bytes_per_line = width/8; - - /* Find out how many more bytes are required for padding so that - ** bytes per scan line will be multiples of bitmap_unit bits */ - if (format == ZPixmap) { - rem = (bytes_per_line*8)%bitmap_unit; - if (rem) - bytes_per_line += (rem/8 + 1); - } - ximage = XCreateImage(disp,fakeVis,depth,format,0,NULL,width,height, 8,0) ; bytes_per_line = ximage->bytes_per_line; -- 2.7.4