summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-19 20:18:21 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-01 10:21:44 -0800
commitf3a3d93b85c61a9b51c75409341a0473a965e911 (patch)
tree6c58e0ff274a15dcf5ce8f068d9c1cdca8f4551d /core/qthelper.cpp
parent8cb43ed237f0ecfe14024e8f9ac8761d2e0ddfd8 (diff)
downloadsubsurface-f3a3d93b85c61a9b51c75409341a0473a965e911.tar.gz
filter: remove diveContainsText()
This function checked a dive for a search string. Its functionality was replaced by a fulltext index. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index ea5514824..2bb2c5d72 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -1426,23 +1426,6 @@ QString getUUID()
return uuidString;
}
-static bool contains(const char *s, const QString &filterstring, Qt::CaseSensitivity cs)
-{
- return !empty_string(s) && QString(s).contains(filterstring, cs);
-}
-
-bool diveContainsText(const struct dive *d, const QString &filterstring, Qt::CaseSensitivity cs, bool includeNotes)
-{
- if (!d)
- return false;
- return contains(get_dive_location(d), filterstring, cs) ||
- (d->divetrip && contains(d->divetrip->location, filterstring, cs)) ||
- contains(d->buddy, filterstring, cs) ||
- contains(d->divemaster, filterstring, cs) ||
- contains(d->suit, filterstring, cs) ||
- get_taglist_string(d->tag_list).contains(filterstring, cs) ||
- (includeNotes && contains(d->notes, filterstring, cs));
-}
int parse_seabear_header(const char *filename, char **params, int pnr)
{
QFile f(filename);