mirror of https://github.com/ecmwf/eccodes.git
Modernisation: Eliminate unnecessary variables
This commit is contained in:
parent
25835a2e23
commit
6b343e279a
|
@ -41,7 +41,7 @@ protected:
|
||||||
const char* class_name_;
|
const char* class_name_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
grib_arguments* args_; /** args of iterator */
|
//grib_arguments* args_; [>* args of iterator <]
|
||||||
size_t size_;
|
size_t size_;
|
||||||
int inited_;
|
int inited_;
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,15 +22,13 @@ int Gen::init(grib_handle* h, grib_arguments* args)
|
||||||
const char* s_rawData = NULL;
|
const char* s_rawData = NULL;
|
||||||
const char* s_numPoints = NULL;
|
const char* s_numPoints = NULL;
|
||||||
long numberOfPoints = 0;
|
long numberOfPoints = 0;
|
||||||
carg_ = 1;
|
int carg = 1;
|
||||||
|
|
||||||
s_numPoints = grib_arguments_get_name(h, args, carg_++);
|
s_numPoints = grib_arguments_get_name(h, args, carg++);
|
||||||
missingValue_ = grib_arguments_get_name(h, args, carg_++);
|
missingValue_ = grib_arguments_get_name(h, args, carg++);
|
||||||
s_rawData = grib_arguments_get_name(h, args, carg_++);
|
s_rawData = grib_arguments_get_name(h, args, carg++);
|
||||||
|
|
||||||
data_ = NULL;
|
data_ = NULL;
|
||||||
h = h; /* We may not need to keep them */
|
|
||||||
args = args;
|
|
||||||
if ((err = grib_get_size(h, s_rawData, &dli)) != GRIB_SUCCESS)
|
if ((err = grib_get_size(h, s_rawData, &dli)) != GRIB_SUCCESS)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@ public:
|
||||||
bool has_next() const override;
|
bool has_next() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int carg_;
|
|
||||||
double* lats_;
|
double* lats_;
|
||||||
double* lons_;
|
double* lons_;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue