From 4ad3e1cc3ee18e69a9bedab6814b733c8980fa91 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Mon, 6 Nov 2017 18:20:57 +0000
Subject: [PATCH] Removed unnecessary variable definitions.

---
 src/parallel_io.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/parallel_io.c b/src/parallel_io.c
index 0825be1612..a542a5ff6f 100644
--- a/src/parallel_io.c
+++ b/src/parallel_io.c
@@ -176,19 +176,6 @@ void readArray(hid_t grp, struct io_props props, size_t N, long long N_total,
     }
   }
 
-  /* Work out properties of the array in the file */
-  int rank;
-  hsize_t shape_total[2];
-  if (props.dimension > 1) {
-    rank = 2;
-    shape_total[0] = N_total;
-    shape_total[1] = props.dimension;
-  } else {
-    rank = 1;
-    shape_total[0] = N_total;
-    shape_total[1] = 0;
-  }
-
   /* Open data space in file */
   const hid_t h_data = H5Dopen2(grp, props.name, H5P_DEFAULT);
   if (h_data < 0) error("Error while opening data space '%s'.", props.name);
-- 
GitLab