Skip to content

Commit

Permalink
Per #1653, for GRIB1, GRIB2, and Pinterp, I was able to remove the se…
Browse files Browse the repository at this point in the history
…t_magic() function so that VarInfo::set_magic() would be called instead. That simpler anyway.
  • Loading branch information
JohnHalleyGotway committed Feb 5, 2021
1 parent fa6a0b1 commit bb7bb06
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 43 deletions.
12 changes: 0 additions & 12 deletions met/src/libcode/vx_data2d_grib/var_info_grib.cc
Expand Up @@ -198,18 +198,6 @@ void VarInfoGrib::set_tri(int v) {

///////////////////////////////////////////////////////////////////////////////

void VarInfoGrib::set_magic(const ConcatString &nstr, const ConcatString &lstr) {

// Validate the magic_string
VarInfo::set_magic(nstr, lstr);

// Store the magic string
MagicStr << cs_erase << nstr << "/" << lstr;

}

///////////////////////////////////////////////////////////////////////////////

void VarInfoGrib::add_grib_code (Dictionary &dict)
{
ConcatString field_name = dict.lookup_string(conf_key_name, false);
Expand Down
1 change: 0 additions & 1 deletion met/src/libcode/vx_data2d_grib/var_info_grib.h
Expand Up @@ -89,7 +89,6 @@ class VarInfoGrib : public VarInfo
// set stuff
//

void set_magic(const ConcatString &, const ConcatString &);
void set_dict(Dictionary &);
void add_grib_code(Dictionary &);

Expand Down
13 changes: 0 additions & 13 deletions met/src/libcode/vx_data2d_grib2/var_info_grib2.cc
Expand Up @@ -257,19 +257,6 @@ void VarInfoGrib2::set_ipdtmpl_val(const IntArray &v) {
return;
}


///////////////////////////////////////////////////////////////////////////////

void VarInfoGrib2::set_magic(const ConcatString &nstr, const ConcatString &lstr) {

// Validate the magic_string
VarInfo::set_magic(nstr, lstr);

// Store the magic string
MagicStr << cs_erase << nstr << "/" << lstr;

}

///////////////////////////////////////////////////////////////////////////////

void VarInfoGrib2::set_dict(Dictionary & dict) {
Expand Down
1 change: 0 additions & 1 deletion met/src/libcode/vx_data2d_grib2/var_info_grib2.h
Expand Up @@ -97,7 +97,6 @@ class VarInfoGrib2 : public VarInfo
// set stuff
//

void set_magic(const ConcatString &, const ConcatString &);
void set_dict(Dictionary &);

void set_record(int);
Expand Down
15 changes: 0 additions & 15 deletions met/src/libcode/vx_data2d_python/var_info_python.cc
Expand Up @@ -147,21 +147,6 @@ void VarInfoPython::set_file_type(const GrdFileType t) {
///////////////////////////////////////////////////////////////////////////////


void VarInfoPython::set_magic(const ConcatString &nstr, const ConcatString &lstr) {

// Validate the magic_string
VarInfo::set_magic(nstr, lstr);

// Store the magic string
MagicStr << cs_erase << nstr << "/" << lstr;

return;
}


///////////////////////////////////////////////////////////////////////////////


void VarInfoPython::set_dict(Dictionary & dict) {

VarInfo::set_dict(dict);
Expand Down
1 change: 0 additions & 1 deletion met/src/libcode/vx_data2d_python/var_info_python.h
Expand Up @@ -56,7 +56,6 @@ class VarInfoPython : public VarInfo
//

void set_file_type(const GrdFileType);
void set_magic(const ConcatString &, const ConcatString &);
void set_dict(Dictionary &);

//
Expand Down

0 comments on commit bb7bb06

Please sign in to comment.