Dead code removal 40/9440/1
authorJeremy Huddleston <jeremyhu@apple.com>
Tue, 13 Dec 2011 23:53:02 +0000 (15:53 -0800)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 3 Sep 2013 04:11:35 +0000 (00:11 -0400)
Change-Id: Iee409b5576cd6f4d011a85abf814f3825403783c
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
multiVis.c

index 086aacd..a445129 100644 (file)
@@ -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;