[libgweather] lib: Remove functions deprecated since 3.10



commit ac2a3075a4c92f98476c7f4f528f8a5009f898cd
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 6 18:18:45 2017 +0100

    lib: Remove functions deprecated since 3.10
    
    Those functions have been deprecated for 4 years, remove them now.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791313

 libgweather/gweather-location.c |   19 -------------------
 libgweather/gweather-location.h |    2 --
 libgweather/gweather-weather.c  |   34 ----------------------------------
 libgweather/gweather-weather.h  |    3 ---
 4 files changed, 0 insertions(+), 58 deletions(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index e80bed3..f6addeb 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -377,25 +377,6 @@ gweather_location_new_world_for_path (const char *path)
 }
 
 /**
- * gweather_location_new_world:
- * @use_regions: whether or not to divide the world into regions
- *
- * Creates a new #GWeatherLocation of type %GWEATHER_LOCATION_WORLD,
- * representing a hierarchy containing all of the locations from
- * Locations.xml.
- *
- * Returns: (allow-none): a %GWEATHER_LOCATION_WORLD location, or
- *   %NULL if Locations.xml could not be found or could not be parsed.
- *
- * Deprecated: 3.10: Use gweather_location_get_world() instead.
- */
-GWeatherLocation *
-gweather_location_new_world (gboolean use_regions)
-{
-    return gweather_location_ref (gweather_location_get_world ());
-}
-
-/**
  * gweather_location_ref:
  * @loc: a #GWeatherLocation
  *
diff --git a/libgweather/gweather-location.h b/libgweather/gweather-location.h
index 218afac..a5ddb6e 100644
--- a/libgweather/gweather-location.h
+++ b/libgweather/gweather-location.h
@@ -55,8 +55,6 @@ GType gweather_location_get_type (void);
 GWEATHER_EXTERN
 GWeatherLocation      *gweather_location_get_world      (void);
 
-GWEATHER_EXTERN G_DEPRECATED_FOR(gweather_location_get_world)
-GWeatherLocation      *gweather_location_new_world      (gboolean use_regions);
 GWEATHER_EXTERN
 GWeatherLocation      *gweather_location_new_world_for_path (const char *path);
 
diff --git a/libgweather/gweather-weather.c b/libgweather/gweather-weather.c
index 9f95e34..059706f 100644
--- a/libgweather/gweather-weather.c
+++ b/libgweather/gweather-weather.c
@@ -2297,37 +2297,3 @@ _gweather_info_new_clone (GWeatherInfo *other)
     return g_object_new (GWEATHER_TYPE_INFO, "location", other->priv->glocation, NULL);
 }
 
-/**
- * gweather_info_get_forecast:
- * @info: a #GWeatherInfo
- *
- * Deprecated: 3.10: Use gweather_info_get_forecast_list() instead.
- */
-char *
-gweather_info_get_forecast (GWeatherInfo *info)
-{
-    GString *buffer;
-    GSList *iter;
-
-    buffer = g_string_new ("");
-
-    for (iter = info->priv->forecast_list; iter; iter = iter->next) {
-       char *date, *summary, *temp;
-
-       date = gweather_info_get_update (iter->data);
-       summary = gweather_info_get_conditions (iter->data);
-       if (g_str_equal (summary, "-")) {
-           g_free (summary);
-           summary = gweather_info_get_sky (iter->data);
-       }
-       temp = gweather_info_get_temp_summary (iter->data);
-
-       g_string_append_printf (buffer, " * %s: %s, %s", date, summary, temp);
-
-       g_free (date);
-       g_free (summary);
-       g_free (temp);
-    }
-
-    return g_string_free (buffer, FALSE);
-}
diff --git a/libgweather/gweather-weather.h b/libgweather/gweather-weather.h
index a251b1f..11ac3c0 100644
--- a/libgweather/gweather-weather.h
+++ b/libgweather/gweather-weather.h
@@ -112,9 +112,6 @@ gchar *              gweather_info_get_sky             (GWeatherInfo *info);
 GWEATHER_EXTERN
 gchar *                         gweather_info_get_conditions      (GWeatherInfo *info);
 
-GWEATHER_EXTERN G_DEPRECATED_FOR(gweather_info_get_forecast_list)
-gchar *                  gweather_info_get_forecast        (GWeatherInfo *info);
-
 GWEATHER_EXTERN
 gchar *                 gweather_info_get_temp            (GWeatherInfo *info);
 GWEATHER_EXTERN


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