mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Disable unused function
I am not removing this but leaving it around as this is useful for a feature that we still need to enable - the ability to filter out which events to display. This existed in 3.1 but is missing in the Qt version. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
83eb64a9ef
commit
7f4e4b16ed
2 changed files with 8 additions and 2 deletions
6
dive.h
6
dive.h
|
@ -646,7 +646,11 @@ extern void add_event(struct divecomputer *dc, int time, int type, int flags, in
|
|||
extern void add_cylinder_description(cylinder_type_t *);
|
||||
extern void add_weightsystem_description(weightsystem_t *);
|
||||
extern void remember_event(const char *eventname);
|
||||
extern int evn_foreach(void (*callback)(const char *, int *, void *), void *data);
|
||||
|
||||
#if WE_DONT_USE_THIS /* this is a missing feature in Qt - selecting which events to display */
|
||||
extern int evn_foreach(void (*callback)(const char *, bool *, void *), void *data);
|
||||
#endif /* WE_DONT_USE_THIS */
|
||||
|
||||
extern void clear_events(void);
|
||||
|
||||
extern void set_dc_nickname(struct dive *dive);
|
||||
|
|
|
@ -99,7 +99,8 @@ struct ev_select *ev_namelist;
|
|||
int evn_allocated;
|
||||
int evn_used;
|
||||
|
||||
int evn_foreach(void (*callback)(const char *, int *, void *), void *data)
|
||||
#if WE_DONT_USE_THIS /* we need to implement event filters in Qt */
|
||||
int evn_foreach(void (*callback)(const char *, bool *, void *), void *data)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -109,6 +110,7 @@ int evn_foreach(void (*callback)(const char *, int *, void *), void *data)
|
|||
}
|
||||
return i;
|
||||
}
|
||||
#endif /* WE_DONT_USE_THIS */
|
||||
|
||||
void clear_events(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue