[libsoup] Remove deprecated SoupMessageHeaders API
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Remove deprecated SoupMessageHeaders API
- Date: Sat, 19 Sep 2020 22:41:56 +0000 (UTC)
commit 661cfdc29e3ce84582079c474bc90cedb5518fb9
Author: Patrick Griffis <pgriffis igalia com>
Date: Tue Jan 28 22:52:44 2020 -0800
Remove deprecated SoupMessageHeaders API
docs/reference/libsoup-2.4-sections.txt | 1 -
libsoup/soup-message-headers.c | 26 --------------------------
libsoup/soup-message-headers.h | 6 ------
3 files changed, 33 deletions(-)
---
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index 26ddfbb2..fea9d08e 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -124,7 +124,6 @@ soup_message_headers_clear
soup_message_headers_clean_connection_headers
soup_message_headers_get_one
soup_message_headers_get_list
-soup_message_headers_get
soup_message_headers_get_headers_type
<SUBSECTION>
soup_message_headers_header_contains
diff --git a/libsoup/soup-message-headers.c b/libsoup/soup-message-headers.c
index 5c8c7cb9..e70909b2 100644
--- a/libsoup/soup-message-headers.c
+++ b/libsoup/soup-message-headers.c
@@ -452,32 +452,6 @@ soup_message_headers_get_list (SoupMessageHeaders *hdrs, const char *name)
return value;
}
-/**
- * soup_message_headers_get:
- * @hdrs: a #SoupMessageHeaders
- * @name: header name
- *
- * Gets the value of header @name in @hdrs.
- *
- * This method was supposed to work correctly for both single-valued
- * and list-valued headers, but because some HTTP clients/servers
- * mistakenly send multiple copies of headers that are supposed to be
- * single-valued, it sometimes returns incorrect results. To fix this,
- * the methods soup_message_headers_get_one() and
- * soup_message_headers_get_list() were introduced, so callers can
- * explicitly state which behavior they are expecting.
- *
- * Return value: (nullable): as with soup_message_headers_get_list().
- *
- * Deprecated: Use soup_message_headers_get_one() or
- * soup_message_headers_get_list() instead.
- **/
-const char *
-soup_message_headers_get (SoupMessageHeaders *hdrs, const char *name)
-{
- return soup_message_headers_get_list (hdrs, name);
-}
-
/**
* SoupMessageHeadersIter:
*
diff --git a/libsoup/soup-message-headers.h b/libsoup/soup-message-headers.h
index f430c97e..699e9843 100644
--- a/libsoup/soup-message-headers.h
+++ b/libsoup/soup-message-headers.h
@@ -45,12 +45,6 @@ void soup_message_headers_clear (SoupMessageHeaders *hdrs);
SOUP_AVAILABLE_IN_2_36
void soup_message_headers_clean_connection_headers (SoupMessageHeaders *hdrs);
-#ifndef SOUP_DISABLE_DEPRECATED
-SOUP_AVAILABLE_IN_2_4
-SOUP_DEPRECATED_IN_2_28_FOR ("soup_message_headers_get_one or soup_message_headers_get_list")
-const char *soup_message_headers_get (SoupMessageHeaders *hdrs,
- const char *name);
-#endif
SOUP_AVAILABLE_IN_2_28
const char *soup_message_headers_get_one (SoupMessageHeaders *hdrs,
const char *name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]