Commit c4c7b5b1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cleanup

parent e4614d8e
......@@ -88,7 +88,6 @@ void cdfComment(int ncid)
}
#endif
int cdfOpenFile(const char *filename, const char *mode, int *filetype)
{
int ncid = -1;
......
......@@ -828,10 +828,6 @@ void gribapiAddRecord(int streamID, int param, grib_handle *gh,
longname[0] = 0;
units[0] = 0;
name[0] = 0;
longname[0] = 0;
units[0] = 0;
vlen = 256;
GRIB_CHECK(grib_get_string(gh, "shortName", name, &vlen), 0);
if ( vlen == 8 && memcmp(name, "unknown", vlen) == 0 ) name[0] = 0;
......
......@@ -1375,7 +1375,6 @@ void iegReadVarDP(int streamID, int varID, double *data, int *nmiss)
int tsid;
int recID;
int i;
int status;
double missval;
iegrec_t *iegp;
stream_t *streamptr;
......@@ -1401,8 +1400,7 @@ void iegReadVarDP(int streamID, int varID, double *data, int *nmiss)
recID = streamptr->vars[varID].level[levID];
recpos = streamptr->tsteps[tsid].records[recID].position;
fileSetPos(fileID, recpos, SEEK_SET);
/* FIXME: status value ignored */
status = iegRead(fileID, iegp);
iegRead(fileID, iegp);
iegInqDataDP(iegp, &data[levID*gridsize]);
}
fileSetPos(fileID, currentfilepos, SEEK_SET);
......@@ -1425,7 +1423,6 @@ void iegReadVarSliceDP(int streamID, int varID, int levID, double *data, int *nm
int tsid;
int recID;
int i;
int status;
double missval;
iegrec_t *iegp;
stream_t *streamptr;
......@@ -1450,8 +1447,7 @@ void iegReadVarSliceDP(int streamID, int varID, int levID, double *data, int *nm
recID = streamptr->vars[varID].level[levID];
recpos = streamptr->tsteps[tsid].records[recID].position;
fileSetPos(fileID, recpos, SEEK_SET);
/* FIXME: status value ignored */
status = iegRead(fileID, iegp);
iegRead(fileID, iegp);
iegInqDataDP(iegp, data);
fileSetPos(fileID, currentfilepos, SEEK_SET);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment