summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-08-20 15:38:15 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-08-20 15:38:15 (GMT)
commit4050bd2422f4f9f4ede4ed3b3ccacc0c3a19cb5a (patch)
tree31cbad53e51dc40d1e7c11f61c4356d5ab514310 /tools/lib
parent88ebaa5e4726643ad472d8fc8f731ede87b44b11 (diff)
downloadhdf5-4050bd2422f4f9f4ede4ed3b3ccacc0c3a19cb5a.zip
hdf5-4050bd2422f4f9f4ede4ed3b3ccacc0c3a19cb5a.tar.gz
hdf5-4050bd2422f4f9f4ede4ed3b3ccacc0c3a19cb5a.tar.bz2
[svn-r19261] Remove unused variables and allocation
Tested: local linux
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index 3cfe56b..b048602 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -4145,8 +4145,6 @@ render_bin_output_region_points(hid_t region_space, hid_t region_id,
{
HERR_INIT(hbool_t, TRUE)
hssize_t npoints;
- hsize_t alloc_size;
- hsize_t *ptdata;
int ndims;
hid_t dtype;
hid_t type_id;
@@ -4158,11 +4156,6 @@ render_bin_output_region_points(hid_t region_space, hid_t region_id,
if((ndims = H5Sget_simple_extent_ndims(region_space)) < 0)
H5E_THROW(FALSE, H5E_tools_min_id_g, "H5Sget_simple_extent_ndims failed");
- alloc_size = npoints * ndims * sizeof(ptdata[0]);
- assert(alloc_size == (hsize_t) ((size_t) alloc_size)); /*check for overflow*/
- if((ptdata = malloc((size_t) alloc_size)) == NULL)
- HGOTO_ERROR(FALSE, H5E_tools_min_id_g, "Could not allocate buffer for ptdata");
-
H5_CHECK_OVERFLOW(npoints, hssize_t, hsize_t);
if(H5Sget_select_elem_pointlist(region_space, (hsize_t) 0, (hsize_t) npoints, ptdata) < 0)
HGOTO_ERROR(FALSE, H5E_tools_min_id_g, "H5Sget_select_elem_pointlist failed");