[libsoup/wip/remove-deprecations: 7/49] Remove deprecated SoupDate APIs



commit 4b6264b97df97d8d39d8d3829be6f7d9a3cc4b21
Author: Patrick Griffis <pgriffis igalia com>
Date:   Wed Feb 12 13:29:19 2020 -0800

    Remove deprecated SoupDate APIs

 docs/reference/libsoup-2.4-sections.txt |  1 -
 libsoup/soup-date.c                     | 26 --------------------------
 libsoup/soup-date.h                     |  9 ---------
 3 files changed, 36 deletions(-)
---
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index 174ab812..7409a58b 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -765,7 +765,6 @@ soup_date_new_from_time_t
 soup_date_new_from_now
 soup_date_to_string
 soup_date_to_time_t
-soup_date_to_timeval
 soup_date_is_past
 soup_date_get_day
 soup_date_get_hour
diff --git a/libsoup/soup-date.c b/libsoup/soup-date.c
index 9602d1f6..aa116724 100644
--- a/libsoup/soup-date.c
+++ b/libsoup/soup-date.c
@@ -722,32 +722,6 @@ soup_date_to_time_t (SoupDate *date)
        return (time_t) (sizeof (time_t) == 4 ? MIN(seconds, G_MAXINT32) : seconds);
 }
 
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-/**
- * soup_date_to_timeval:
- * @date: a #SoupDate
- * @time: (out): a #GTimeVal structure in which to store the converted time.
- *
- * Converts @date to a #GTimeVal.
- *
- * Deprecated: Do not use #GTimeVal, as it's not Y2038-safe.
- *
- * Since: 2.24
- */
-void
-soup_date_to_timeval (SoupDate *date, GTimeVal *time)
-{
-       g_return_if_fail (date != NULL);
-       g_return_if_fail (time != NULL);
-
-       /* FIXME: offset, etc */
-
-       time->tv_sec = rata_die_day (date) - TIME_T_EPOCH_RATA_DIE_DAY;
-       time->tv_sec = ((((time->tv_sec * 24) + date->hour) * 60) + date->minute) * 60 + date->second;
-       time->tv_usec = 0;
-}
-G_GNUC_END_IGNORE_DEPRECATIONS
-
 /**
  * soup_date_is_past:
  * @date: a #SoupDate
diff --git a/libsoup/soup-date.h b/libsoup/soup-date.h
index 631e700d..8048346f 100644
--- a/libsoup/soup-date.h
+++ b/libsoup/soup-date.h
@@ -59,15 +59,6 @@ char     *soup_date_to_string       (SoupDate       *date,
 SOUP_AVAILABLE_IN_2_24
 time_t    soup_date_to_time_t       (SoupDate       *date);
 
-#ifndef SOUP_DISABLE_DEPRECATED
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-SOUP_AVAILABLE_IN_2_24
-SOUP_DEPRECATED_IN_2_70
-void      soup_date_to_timeval      (SoupDate       *date,
-                                    GTimeVal       *time);
-G_GNUC_END_IGNORE_DEPRECATIONS
-#endif
-
 SOUP_AVAILABLE_IN_2_24
 gboolean  soup_date_is_past         (SoupDate       *date);
 


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