summaryrefslogtreecommitdiff
path: root/libsoup
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-02-12 13:29:19 -0800
committerPatrick Griffis <pgriffis@igalia.com>2020-09-19 15:41:24 -0700
commit2c683a9b282a334bc03ea30df5c6e7aebc922075 (patch)
treeaa219d35f7109228590ced4f1b4f31ca69b57530 /libsoup
parentc78c651dec828f31c21c63fc2d1ad3c6545a28bb (diff)
downloadlibsoup-2c683a9b282a334bc03ea30df5c6e7aebc922075.tar.gz
Remove deprecated SoupDate APIs
Diffstat (limited to 'libsoup')
-rw-r--r--libsoup/soup-date.c26
-rw-r--r--libsoup/soup-date.h9
2 files changed, 0 insertions, 35 deletions
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);