[libgweather/drop-old-api: 7/7] Remove GWEATHER_PROVIDER_YAHOO
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/drop-old-api: 7/7] Remove GWEATHER_PROVIDER_YAHOO
- Date: Fri, 15 Oct 2021 16:05:23 +0000 (UTC)
commit 1a5a7185099f852d32e8629e0c21fba28588291d
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Oct 15 17:04:23 2021 +0100
Remove GWEATHER_PROVIDER_YAHOO
The code has long since gone, we can finally remove the enumeration
member from GWeatherProvider.
doc/migrating-3to4.md | 4 ++++
libgweather/gweather-weather.h | 8 +++-----
libgweather/tests/test_libgweather.c | 1 -
libgweather/tools/test_weather.c | 2 --
4 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/doc/migrating-3to4.md b/doc/migrating-3to4.md
index 1a7a70de..686b0b07 100644
--- a/doc/migrating-3to4.md
+++ b/doc/migrating-3to4.md
@@ -41,3 +41,7 @@ reference to it, using [method GWeather Location ref].
The radar image provider stopped working a while ago, and the `get_radar()`
method has been returning `NULL` since then.
+
+### Stop using `GWEATHER_PROVIDER_YAHOO`
+
+The Yahoo! provider was removed in libgweather 3.28.
diff --git a/libgweather/gweather-weather.h b/libgweather/gweather-weather.h
index 7d0bf760..0bba4db6 100644
--- a/libgweather/gweather-weather.h
+++ b/libgweather/gweather-weather.h
@@ -21,7 +21,6 @@ G_BEGIN_DECLS
* @GWEATHER_PROVIDER_NONE: no provider, no weather information available
* @GWEATHER_PROVIDER_METAR: METAR office, providing current conditions worldwide
* @GWEATHER_PROVIDER_IWIN: US weather office, providing 7 days of forecast
- * @GWEATHER_PROVIDER_YAHOO: Yahoo Weather Service, removed in 3.27.1
* @GWEATHER_PROVIDER_MET_NO: MET.no service, worldwide but requires attribution and a subscription to the
[API users mailing-list](https://lists.met.no/mailman/listinfo/api-users).
* @GWEATHER_PROVIDER_OWM: OpenWeatherMap, worldwide and possibly more reliable, but requires attribution
and is limited in the number of queries
* @GWEATHER_PROVIDER_ALL: enable all available providers
@@ -30,10 +29,9 @@ typedef enum { /*< flags, underscore_name=gweather_provider >*/
GWEATHER_PROVIDER_NONE = 0,
GWEATHER_PROVIDER_METAR = 1,
GWEATHER_PROVIDER_IWIN = 1 << 2,
- GWEATHER_PROVIDER_YAHOO = 1 << 3,
- GWEATHER_PROVIDER_MET_NO = 1 << 4,
- GWEATHER_PROVIDER_OWM = 1 << 5,
- GWEATHER_PROVIDER_ALL = (GWEATHER_PROVIDER_METAR | GWEATHER_PROVIDER_IWIN | GWEATHER_PROVIDER_YAHOO |
GWEATHER_PROVIDER_MET_NO | GWEATHER_PROVIDER_OWM)
+ GWEATHER_PROVIDER_MET_NO = 1 << 3,
+ GWEATHER_PROVIDER_OWM = 1 << 4,
+ GWEATHER_PROVIDER_ALL = (GWEATHER_PROVIDER_METAR | GWEATHER_PROVIDER_IWIN | GWEATHER_PROVIDER_MET_NO |
GWEATHER_PROVIDER_OWM)
} GWeatherProvider;
#define GWEATHER_TYPE_INFO (gweather_info_get_type ())
diff --git a/libgweather/tests/test_libgweather.c b/libgweather/tests/test_libgweather.c
index cc948da1..bb3d1d3b 100644
--- a/libgweather/tests/test_libgweather.c
+++ b/libgweather/tests/test_libgweather.c
@@ -758,7 +758,6 @@ test_weather_loop_use_after_free (void)
gweather_info_set_enabled_providers (info,
GWEATHER_PROVIDER_METAR |
GWEATHER_PROVIDER_IWIN |
- GWEATHER_PROVIDER_YAHOO |
GWEATHER_PROVIDER_MET_NO |
GWEATHER_PROVIDER_OWM);
gweather_info_set_location (info, loc);
diff --git a/libgweather/tools/test_weather.c b/libgweather/tools/test_weather.c
index 31584e5a..55493a74 100644
--- a/libgweather/tools/test_weather.c
+++ b/libgweather/tools/test_weather.c
@@ -111,8 +111,6 @@ set_providers (GWeatherInfo *info)
ADD_PROVIDER_STR("METAR");
if (providers & GWEATHER_PROVIDER_IWIN)
ADD_PROVIDER_STR("IWIN");
- if (providers & GWEATHER_PROVIDER_YAHOO)
- ADD_PROVIDER_STR("YAHOO");
if (providers & GWEATHER_PROVIDER_MET_NO)
ADD_PROVIDER_STR("MET_NO");
if (providers & GWEATHER_PROVIDER_OWM)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]