changeset 1773:a0717f1960da

Remove some unused variables
author bert <bert>
date Fri, 30 Apr 2004 18:52:49 +0000
parents aaf8ec6d84b4
children 3ca1b53c816f
files libsrc2/hyper.c libsrc2/slice.c progs/mincresample/mincresample.c
diffstat 3 files changed, 7 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/libsrc2/hyper.c
+++ b/libsrc2/hyper.c
@@ -357,7 +357,6 @@
                    const unsigned long count[],
                    void *buffer)
 {
-    hid_t file_id;
     hid_t type_id = -1;
     hid_t dset_id = -1;
     hid_t mspc_id = -1;
@@ -369,8 +368,6 @@
     int ndims;
     int n_different = 0;
 
-    file_id = volume->hdf_id;
-
     /* Disallow write operations to anything but the highest resolution.
      */
     if (opcode == MIRW_OP_WRITE && volume->selected_resolution != 0) {
@@ -484,7 +481,6 @@
     int ndims;
     int nbytes;
     int nc_type;
-    int file_id;
     int result = MI_ERROR;
     long icv_start[MI2_MAX_VAR_DIMS];
     long icv_count[MI2_MAX_VAR_DIMS];
@@ -501,8 +497,6 @@
 
     nbytes = MI2typelen(nc_type);
 
-    file_id = volume->hdf_id;
-
     ndims = volume->number_of_dims;
 
     if (ndims != 0) {
--- a/libsrc2/slice.c
+++ b/libsrc2/slice.c
@@ -36,7 +36,6 @@
                   const unsigned long start_positions[],
                   int array_length, double *value)
 {
-    hid_t file_id;
     hid_t dset_id;
     hid_t fspc_id;
     hid_t mspc_id;
@@ -53,8 +52,6 @@
         return mirw_volume_minmax(opcode, volume, value);
     }
 
-    file_id = volume->hdf_id;
-
     if (opcode & MIRW_SCALE_MIN) {
         dset_id = volume->imin_id;
     }
@@ -242,7 +239,6 @@
 static int
 mirw_volume_minmax(int opcode, mihandle_t volume, double *value)
 {
-    hid_t file_id;
     hid_t dset_id;
     hid_t fspc_id;
     hid_t mspc_id;
@@ -264,7 +260,6 @@
             return (MI_NOERROR);
         }
     }
-    file_id = volume->hdf_id;
     if (opcode & MIRW_SCALE_MIN) {
         dset_id = volume->imin_id;
     }
--- a/progs/mincresample/mincresample.c
+++ b/progs/mincresample/mincresample.c
@@ -11,7 +11,10 @@
 @CREATED    : February 8, 1993 (Peter Neelin)
 @MODIFIED   : 
  * $Log: mincresample.c,v $
- * Revision 6.13  2004-04-27 15:31:20  bert
+ * Revision 6.14  2004-04-30 18:52:49  bert
+ * Remove some unused variables
+ *
+ * Revision 6.13  2004/04/27 15:31:20  bert
  * Added -2 option
  *
  * Revision 6.12  2003/09/18 15:01:33  bert
@@ -165,7 +168,7 @@
 ---------------------------------------------------------------------------- */
 
 #ifndef lint
-static char rcsid[]="$Header: /private-cvsroot/minc/progs/mincresample/mincresample.c,v 6.13 2004-04-27 15:31:20 bert Exp $";
+static char rcsid[]="$Header: /private-cvsroot/minc/progs/mincresample/mincresample.c,v 6.14 2004-04-30 18:52:49 bert Exp $";
 #endif
 
 #include <stdlib.h>
@@ -425,7 +428,7 @@
    /* Other variables */
    int idim, index;
    int in_vindex, out_vindex;  /* Volume indices (0, 1 or 2) */
-   int in_findex, out_findex;  /* File indices (0 to ndims-1) */
+   int out_findex;              /* File indices (0 to ndims-1) */
    long size, total_size;
    char *infile, *outfile;
    File_Info *fp;
@@ -639,7 +642,6 @@
       /* Get the index for input and output volumes */
       in_vindex = in_vol->file->axes[idim];       /* 0, 1 or 2 */
       out_vindex = args.volume_def.axes[idim];    /* 0, 1 or 2 */
-      in_findex = in_vol->file->indices[in_vindex];     /* 0 to ndims-1 */
       out_findex = in_vol->file->indices[out_vindex];   /* 0 to ndims-1 */
       size = args.volume_def.nelements[idim];
 
@@ -767,13 +769,12 @@
                           Volume_Definition *volume_def,
                           File_Info *file_info)
 {
-   int dim[MAX_VAR_DIMS], dimid, status, length;
+   int dim[MAX_VAR_DIMS], dimid;
    int axis_counter, idim, jdim, cur_axis;
    int varndims, vardim[MAX_VAR_DIMS];
    long varstart, varcount, dimlength;
    char attstr[MI_MAX_ATTSTR_LEN];
    char dimname[MAX_NC_NAME];
-   double vrange[2];
    enum {UNKNOWN, REGULAR, IRREGULAR} coord_spacing;
 
    /* Open the minc file */