From 7ff287694b7fd5d1fca4f31e552c8d656257c82b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 7 Oct 2010 10:50:40 +0200 Subject: Tidy up debodge_saturation() --- src/hdf5-file.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/hdf5-file.c') diff --git a/src/hdf5-file.c b/src/hdf5-file.c index 503065a0..ed1c5fe9 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -237,7 +237,6 @@ static void debodge_saturation(struct hdfile *f, struct image *image) int i; float *buf; herr_t r; - int n; dh = H5Dopen(f->fh, "/processing/hitfinder/peakinfo_saturated", H5P_DEFAULT); @@ -286,7 +285,6 @@ static void debodge_saturation(struct hdfile *f, struct image *image) return; } - n = 0; for ( i=0; idata[x-1+image->width*y] = val / 5.0; image->data[x+image->width*(y+1)] = val / 5.0; image->data[x+image->width*(y-1)] = val / 5.0; - n++; } - STATUS("Corrected %i saturation values, %i failed.\n", - n, (int)size[0]-n); + STATUS("Corrected %i saturation values\n", (int)size[0]); free(buf); H5Sclose(sh); -- cgit v1.2.3