mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
filter: compile fulltext index on mobile
The code is not used yet. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2c038a24b0
commit
5bbc0fdb58
7 changed files with 8 additions and 20 deletions
|
|
@ -17,9 +17,7 @@
|
|||
#include "tag.h"
|
||||
#include "trip.h"
|
||||
#include "structured_list.h"
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
#include "fulltext.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* one could argue about the best place to have this variable -
|
||||
|
|
@ -360,9 +358,7 @@ static void free_dive_structures(struct dive *d)
|
|||
{
|
||||
if (!d)
|
||||
return;
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
fulltext_unregister(d);
|
||||
#endif
|
||||
/* free the strings */
|
||||
free(d->buddy);
|
||||
free(d->divemaster);
|
||||
|
|
@ -408,9 +404,7 @@ static void copy_dive_nodc(const struct dive *s, struct dive *d)
|
|||
*d = *s;
|
||||
memset(&d->cylinders, 0, sizeof(d->cylinders));
|
||||
memset(&d->weightsystems, 0, sizeof(d->weightsystems));
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
d->full_text = NULL;
|
||||
#endif
|
||||
invalidate_dive_cache(d);
|
||||
d->buddy = copy_string(s->buddy);
|
||||
d->divemaster = copy_string(s->divemaster);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue