From 3bfe9d60e1365c9fb28c4d64dc93d2cfe1cdf83b Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Wed, 29 Dec 2021 10:56:09 +0000 Subject: 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. --- libgweather/gweather-location.c | 1 - 1 file changed, 1 deletion(-) 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. */ -- cgit v1.2.1