core: remove alloc_filter_preset() and free_filter_preset()

All users of that are now C++ and don't need these helpers.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-01 22:44:45 +01:00 committed by Michael Keller
parent cf7c54bd56
commit 92a1a08b21
6 changed files with 15 additions and 29 deletions

View file

@ -10,6 +10,7 @@
#include "filterpreset.h"
#include "picture.h"
#include <memory>
#include <sqlite3.h>
#include <time.h>
@ -68,7 +69,7 @@ struct parser_state {
struct dive_trip *cur_trip = nullptr; /* owning */
struct sample *cur_sample = nullptr; /* non-owning */
struct picture cur_picture { 0 }; /* owning */
struct filter_preset *cur_filter = nullptr; /* owning */
std::unique_ptr<filter_preset> cur_filter; /* owning */
std::string fulltext; /* owning */
std::string fulltext_string_mode; /* owning */
std::string filter_constraint_type; /* owning */