Remove unused fields from struct

The nvars, ndims, and natts fields on the NC_HDF5_FILE_INFO struct are
never set.  The nvars field is read, but since it is never written,
the value is always zero.
This commit is contained in:
Greg Sjaardema 2016-07-11 15:14:06 -04:00 committed by Ward Fisher
parent 473529d199
commit cbb9448ab0
2 changed files with 0 additions and 7 deletions

View File

@ -308,9 +308,6 @@ typedef struct NC_HDF5_FILE_INFO
#endif
int flags;
int cmode;
int nvars;
int ndims;
int natts;
nc_bool_t parallel; /* True if file is open for parallel access */
nc_bool_t redef; /* True if redefining an existing file */
int fill_mode; /* Fill mode for vars - Unused internally currently */

View File

@ -417,10 +417,6 @@ nc_def_var_nc4(int ncid, const char *name, nc_type xtype,
if((unsigned long) ndims > X_INT_MAX) /* Backward compat */
BAIL(NC_EINVAL);
/* Classic model files have a limit on number of vars. */
if(h5->cmode & NC_CLASSIC_MODEL && h5->nvars >= NC_MAX_VARS)
BAIL(NC_EMAXVARS);
/* Check that this name is not in use as a var, grp, or type. */
if ((retval = nc4_check_dup_name(grp, norm_name)))
BAIL(retval);