From 324b6182aa46fa8eb6c2c60c9fdcb40e00da6b32 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 1 Jul 2015 18:35:55 -0300 Subject: Remove location completion model This is a functional but hard to expand model for the dive sites. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-models/completionmodels.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'qt-models') diff --git a/qt-models/completionmodels.cpp b/qt-models/completionmodels.cpp index f2e70afd1..ff2afd997 100644 --- a/qt-models/completionmodels.cpp +++ b/qt-models/completionmodels.cpp @@ -42,19 +42,6 @@ CREATE_CSV_UPDATE_METHOD(BuddyCompletionModel, buddy); CREATE_CSV_UPDATE_METHOD(DiveMasterCompletionModel, divemaster); CREATE_UPDATE_METHOD(SuitCompletionModel, suit); -void LocationCompletionModel::updateModel() -{ - QStringList list; - struct dive_site *ds; - int i = 0; - for_each_dive_site(i, ds) { - if (!list.contains(ds->name)) - list.append(ds->name); - } - std::sort(list.begin(), list.end()); - setStringList(list); -} - void TagCompletionModel::updateModel() { if (g_tag_list == NULL) -- cgit v1.2.3-70-g09d2