From 9e4b3278f6361d25f357634b1db56110faaf01c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Karas?= Date: Sat, 26 Oct 2024 23:22:38 +0200 Subject: [PATCH] remove unused variable fix clang warning: variable 'count' set but not used --- libosmscout-client-qt/src/osmscoutclientqt/LookupModule.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libosmscout-client-qt/src/osmscoutclientqt/LookupModule.cpp b/libosmscout-client-qt/src/osmscoutclientqt/LookupModule.cpp index b2549163d..c6cc1c4ee 100644 --- a/libosmscout-client-qt/src/osmscoutclientqt/LookupModule.cpp +++ b/libosmscout-client-qt/src/osmscoutclientqt/LookupModule.cpp @@ -289,7 +289,6 @@ void LookupModule::requestLocationDescription(const osmscout::GeoCoord location) QMutexLocker locker(&mutex); OSMScoutQt::GetInstance().GetDBThread()->RunSynchronousJob( [this,location](const std::list &databases){ - int count = 0; for (auto db:databases){ osmscout::LocationDescription description; osmscout::GeoBox dbBox=db->GetDBGeoBox(); @@ -304,8 +303,6 @@ void LookupModule::requestLocationDescription(const osmscout::GeoCoord location) } if (description.GetAtAddressDescription()){ - count++; - auto place = description.GetAtAddressDescription()->GetPlace(); emit locationDescription(location, QString::fromStdString(db->path), description, BuildAdminRegionList(db, place.GetAdminRegion(), regionMap)); @@ -317,8 +314,6 @@ void LookupModule::requestLocationDescription(const osmscout::GeoCoord location) } if (description.GetAtPOIDescription()){ - count++; - auto place = description.GetAtPOIDescription()->GetPlace(); emit locationDescription(location, QString::fromStdString(db->path), description, BuildAdminRegionList(db, place.GetAdminRegion(), regionMap));