summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-12-13 15:53:02 -0800
committerJeremy Huddleston <jeremyhu@apple.com>2011-12-13 15:53:02 -0800
commit8376c9c6098b69a47fc37817ecf9f57302d992fc (patch)
treed7806138beb62a84dcc419b9a0275ea5674fb7a3
parent7d88d8ab44b17247753f7225a1d8133d55d8423e (diff)
Dead code removal
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--multiVis.c14
1 files changed, 0 insertions, 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;