summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2021-12-29 10:56:09 +0000
committerWill Thompson <will@willthompson.co.uk>2021-12-29 10:56:09 +0000
commit3bfe9d60e1365c9fb28c4d64dc93d2cfe1cdf83b (patch)
tree8d59aaaa78a4a3e337261abba165b9aef2127bf3
parentb0d1af4185798ecfbd39e985707afa80c8ed520a (diff)
downloadlibgweather-3bfe9d60e1365c9fb28c4d64dc93d2cfe1cdf83b.tar.gz
location: Remove unused world variable
Prior to 248e701f ("Remove nullable instance arguments"), this variable was used if the instance argument is NULL. Now it is conceptually unused. Unfortunately -Wunused does not report it as such because it *is* used by the g_autoptr() cleanup function.
-rw-r--r--libgweather/gweather-location.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 3a174c5..5bdd5df 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -687,7 +687,6 @@ gweather_location_find_nearest_city (GWeatherLocation *loc,
double lat,
double lon)
{
- g_autoptr (GWeatherLocation) world = NULL;
/* The data set really isn't too big. Don't concern ourselves
* with a proper nearest neighbors search. Instead, just do
* an O(n) search. */