[libgweather] lib: Remove deprecated GWeatherForecastType



commit 7e9d27ceece7951223e38402d86508e3812ba2d0
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 6 18:20:38 2017 +0100

    lib: Remove deprecated GWeatherForecastType
    
    And its use in gweather_info_new().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791313

 doc/libgweather-sections.txt   |    1 -
 libgweather/gweather-enums.h   |    6 ------
 libgweather/gweather-weather.c |    4 +---
 libgweather/gweather-weather.h |    3 +--
 4 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/doc/libgweather-sections.txt b/doc/libgweather-sections.txt
index 63da2fd..bdc2b1c 100644
--- a/doc/libgweather-sections.txt
+++ b/doc/libgweather-sections.txt
@@ -158,7 +158,6 @@ GWeatherDistanceUnit
 GWeatherPressureUnit
 GWeatherSpeedUnit
 GWeatherTemperatureUnit
-GWeatherForecastType
 
 <SUBSECTION>
 gweather_info_get_value_update
diff --git a/libgweather/gweather-enums.h b/libgweather/gweather-enums.h
index 3388803..a0df282 100644
--- a/libgweather/gweather-enums.h
+++ b/libgweather/gweather-enums.h
@@ -112,12 +112,6 @@ typedef enum { /*< underscore_name=gweather_distance_unit >*/
     GWEATHER_DISTANCE_UNIT_MILES
 } GWeatherDistanceUnit;
 
-typedef enum { /*< underscore_name=gweather_forecast_type >*/
-    GWEATHER_FORECAST_STATE,
-    GWEATHER_FORECAST_ZONE,
-    GWEATHER_FORECAST_LIST
-} GWeatherForecastType;
-
 /**
  * GWeatherFormatOptions:
  * @GWEATHER_FORMAT_OPTION_DEFAULT: The default string format
diff --git a/libgweather/gweather-weather.c b/libgweather/gweather-weather.c
index 059706f..ec6906c 100644
--- a/libgweather/gweather-weather.c
+++ b/libgweather/gweather-weather.c
@@ -2269,7 +2269,6 @@ gweather_info_class_init (GWeatherInfoClass *klass)
 /**
  * gweather_info_new:
  * @location: (allow-none): the desidered #GWeatherLocation (%NULL for default)
- * @type: deprecated and ignored
  *
  * Builds a new #GWeatherInfo that will provide weather information about
  * @location.
@@ -2277,8 +2276,7 @@ gweather_info_class_init (GWeatherInfoClass *klass)
  * Returns: (transfer full): a new #GWeatherInfo
  */
 GWeatherInfo *
-gweather_info_new (GWeatherLocation     *location,
-                  GWeatherForecastType  type)
+gweather_info_new (GWeatherLocation     *location)
 {
     GWeatherInfo *self;
 
diff --git a/libgweather/gweather-weather.h b/libgweather/gweather-weather.h
index 11ac3c0..fcff0b8 100644
--- a/libgweather/gweather-weather.h
+++ b/libgweather/gweather-weather.h
@@ -78,8 +78,7 @@ struct _GWeatherInfoClass {
 GWEATHER_EXTERN
 GType                    gweather_info_get_type            (void) G_GNUC_CONST;
 GWEATHER_EXTERN
-GWeatherInfo *           gweather_info_new                 (GWeatherLocation     *location,
-                                                           GWeatherForecastType  type);
+GWeatherInfo *           gweather_info_new                 (GWeatherLocation *location);
 GWEATHER_EXTERN
 void                     gweather_info_update              (GWeatherInfo *info);
 GWEATHER_EXTERN


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]