mirror of https://github.com/ecmwf/eccodes.git
Cleanup: Remove the tiny test and xref
This commit is contained in:
parent
ea0105bd24
commit
6132e9d8de
|
@ -269,6 +269,8 @@ static void dump(grib_action* act, FILE* f, int lvl)
|
|||
|
||||
static void xref(grib_action* act, FILE* f, const char* path)
|
||||
{
|
||||
Assert(!"xref is disabled");
|
||||
#if 0
|
||||
grib_action_alias* a = (grib_action_alias*)act;
|
||||
if (a->target) {
|
||||
fprintf(f, "bless({name=>'%s', target=>'%s', path=>'%s'},'xref::alias'),\n", act->name, a->target, path);
|
||||
|
@ -280,6 +282,7 @@ static void xref(grib_action* act, FILE* f, const char* path)
|
|||
if (act->name_space)
|
||||
fprintf(f, "bless({name=>'%s.%s', path=>'%s'},'xref::unalias'),\n", act->name_space, act->name, path);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void destroy(grib_context* context, grib_action* act)
|
||||
|
|
|
@ -131,6 +131,7 @@ static void dump(grib_action* act, FILE* f, int lvl)
|
|||
grib_context_print(act->context, f, "%s[%d] %s \n", act->op, a->len, act->name);
|
||||
}
|
||||
|
||||
#if 0
|
||||
#define F(x) \
|
||||
if (flg & x) { \
|
||||
fprintf(f, "%s=>1,", #x); \
|
||||
|
@ -176,6 +177,11 @@ static void xref(grib_action* act, FILE* f, const char* path)
|
|||
|
||||
fprintf(f, "]}, 'xref::%s'),\n", act->op);
|
||||
}
|
||||
#endif
|
||||
static void xref(grib_action* act, FILE* f, const char* path)
|
||||
{
|
||||
Assert(!"xref is disabled");
|
||||
}
|
||||
|
||||
static int create_accessor(grib_section* p, grib_action* act, grib_loader* loader)
|
||||
{
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/sh
|
||||
# (C) Copyright 2005- ECMWF.
|
||||
#
|
||||
# This software is licensed under the terms of the Apache Licence Version 2.0
|
||||
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
|
||||
#
|
||||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
|
||||
. ./include.sh
|
||||
|
||||
REDIRECT=/dev/null
|
||||
|
||||
cat >${data_dir}/f.rules <<EOF
|
||||
set values = { 1.0e-110, 1.5e-110, 1.005e-110 }
|
||||
write;
|
||||
EOF
|
||||
|
||||
${tools_dir}/grib_filter ${data_dir}/f.rules ${data_dir}/ 2> $REDIRECT > $REDIRECT
|
||||
|
Loading…
Reference in New Issue