diff options
-rw-r--r-- | src/H5G.c | 5 | ||||
-rw-r--r-- | src/H5Gpublic.h | 12 |
2 files changed, 2 insertions, 15 deletions
@@ -2525,7 +2525,6 @@ static H5G_obj_t H5G_get_objtype_by_idx(H5G_t *grp, hsize_t idx, hid_t dxpl_id) { H5G_obj_t ret_value = H5G_UNKNOWN; - herr_t ret; H5G_bt_ud3_t udata; FUNC_ENTER_NOAPI(H5G_get_objtype_by_idx, FAIL); @@ -2535,8 +2534,8 @@ H5G_get_objtype_by_idx(H5G_t *grp, hsize_t idx, hid_t dxpl_id) udata.group = grp; /* Iterate over the group members */ - if ((ret = H5B_iterate (H5G_fileof(grp), dxpl_id, H5B_SNODE, - H5G_node_type, grp->ent.cache.stab.btree_addr, &udata))<0) + if (H5B_iterate (H5G_fileof(grp), dxpl_id, H5B_SNODE, + H5G_node_type, grp->ent.cache.stab.btree_addr, &udata)<0) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "iteration operator failed"); ret_value = udata.type; diff --git a/src/H5Gpublic.h b/src/H5Gpublic.h index febb6c7..88b6c45 100644 --- a/src/H5Gpublic.h +++ b/src/H5Gpublic.h @@ -52,17 +52,6 @@ typedef enum H5G_link_t { * application is running. An object may satisfy the `isa' function for more * than one type. */ -#ifdef TRY -#define H5G_UNKNOWN (-1) /* Unknown object type */ -#define H5G_LINK 0 /* Object is a symbolic link */ -#define H5G_GROUP 1 /* Object is a group */ -#define H5G_DATASET 2 /* Object is a dataset */ -#define H5G_TYPE 3 /* Object is a named data type */ -#define H5G_RESERVED_4 4 /* Reserved for future use */ -#define H5G_RESERVED_5 5 /* Reserved for future use */ -#define H5G_RESERVED_6 6 /* Reserved for future use */ -#define H5G_RESERVED_7 7 /* Reserved for future use */ -#else typedef enum H5G_obj_t { H5G_UNKNOWN = -1, /* Unknown object type */ H5G_LINK, /* Object is a symbolic link */ @@ -74,7 +63,6 @@ typedef enum H5G_obj_t { H5G_RESERVED_6, /* Reserved for future use */ H5G_RESERVED_7 /* Reserved for future use */ } H5G_obj_t; -#endif /*TRY*/ #define H5G_NTYPES 256 /* Max possible number of types */ #define H5G_NLIBTYPES 8 /* Number of internal types */ |