core: remove filterconstraint C boilerplate code

Since all code can now directly access C++ structures these
accessor functions were not necessary.

Split out the table from the filterconstraint source file
and include it directly into the divelog.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-08 18:54:23 +02:00 committed by bstoeger
parent 2bdcdab391
commit 91968ac579
20 changed files with 212 additions and 250 deletions

View file

@ -1440,11 +1440,8 @@ static void try_to_fill_filter(struct filter_preset *filter, const char *name, c
{
start_match("filterpreset", name, buf);
std::string s;
if (MATCH("name", utf8_string_std, &s)) {
filter_preset_set_name(filter, s.c_str());
if (MATCH("name", utf8_string_std, &filter->name))
return;
}
nonmatch("filterpreset", name, buf);
}