diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 11:24:20 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 19:01:06 +0200 |
commit | 6363add86a3a848be08def62f5c14f683fb0de34 (patch) | |
tree | ee423fc380666b39da2094038830c8be5d7f1560 /libmm-glib/mm-location-gps-nmea.c | |
parent | b38586a12cd1aca12ebdfa363f2c48773a7ca13b (diff) |
libmm-glib,location-gps-nmea: move deprecated methods to compat source
Diffstat (limited to 'libmm-glib/mm-location-gps-nmea.c')
-rw-r--r-- | libmm-glib/mm-location-gps-nmea.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/libmm-glib/mm-location-gps-nmea.c b/libmm-glib/mm-location-gps-nmea.c index a52ad34d..f1a33bf7 100644 --- a/libmm-glib/mm-location-gps-nmea.c +++ b/libmm-glib/mm-location-gps-nmea.c @@ -190,49 +190,6 @@ mm_location_gps_nmea_get_traces (MMLocationGpsNmea *self) /*****************************************************************************/ -#ifndef MM_DISABLE_DEPRECATED - -static void -build_full_foreach (const gchar *trace_type, - const gchar *trace, - GString **built) -{ - if ((*built)->len == 0 || g_str_has_suffix ((*built)->str, "\r\n")) - g_string_append (*built, trace); - else - g_string_append_printf (*built, "\r\n%s", trace); -} - -/** - * mm_location_gps_nmea_build_full: - * @self: a #MMLocationGpsNmea. - * - * Gets a compilation of all cached traces, in a single string. - * Traces are separated by '\r\n'. - * - * Returns: (transfer full): a string containing all traces, or #NULL if none - * available. The returned value should be freed with g_free(). - * - * Since: 1.0 - * Deprecated: 1.14: user should use mm_location_gps_nmea_get_traces() instead, - * which provides a much more generic interface to the full list of traces. - */ -gchar * -mm_location_gps_nmea_build_full (MMLocationGpsNmea *self) -{ - GString *built; - - built = g_string_new (""); - g_hash_table_foreach (self->priv->traces, - (GHFunc)build_full_foreach, - &built); - return g_string_free (built, FALSE); -} - -#endif - -/*****************************************************************************/ - /** * mm_location_gps_nmea_get_string_variant: (skip) */ |