[libsoup] Remove deprecated SoupKnownStatusCode API
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Remove deprecated SoupKnownStatusCode API
- Date: Sat, 19 Sep 2020 22:41:56 +0000 (UTC)
commit f696adee89105e169f9a19a175168bd5ad6ccd8d
Author: Patrick Griffis <pgriffis igalia com>
Date: Thu Feb 13 16:00:29 2020 -0800
Remove deprecated SoupKnownStatusCode API
docs/reference/libsoup-2.4-sections.txt | 1 -
libsoup/Soup-2.4.metadata | 1 -
libsoup/soup-status.c | 4 --
libsoup/soup-status.h | 78 ---------------------------------
4 files changed, 84 deletions(-)
---
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index aa97b0c1..87017b2f 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -216,7 +216,6 @@ soup_status_proxify
SOUP_HTTP_ERROR
<SUBSECTION Private>
soup_http_error_quark
-SoupKnownStatusCode
</SECTION>
<SECTION>
diff --git a/libsoup/Soup-2.4.metadata b/libsoup/Soup-2.4.metadata
index 518ad70d..c5c7450f 100644
--- a/libsoup/Soup-2.4.metadata
+++ b/libsoup/Soup-2.4.metadata
@@ -12,7 +12,6 @@ HTTPVersion.http_* name="http_(.+)"
// Backwards compatibility
Requester deprecated_since="2.42" replacement="Session"
-KnownStatusCode deprecated_since="2.44" replacement="Status"
ProxyResolver deprecated_since="2.28" replacement="ProxyURIResolver"
// Report upstream
diff --git a/libsoup/soup-status.c b/libsoup/soup-status.c
index ee0b88c9..fddb2a6e 100644
--- a/libsoup/soup-status.c
+++ b/libsoup/soup-status.c
@@ -154,10 +154,6 @@
* Note that no libsoup functions take or return this type directly;
* any function that works with status codes will accept unrecognized
* status codes as well.
- *
- * Prior to 2.44 this type was called
- * <literal>SoupKnownStatusCode</literal>, but the individual values
- * have always had the names they have now.
**/
/* The reason_phrases are not localized because:
diff --git a/libsoup/soup-status.h b/libsoup/soup-status.h
index 5b0db2aa..9bbe578e 100644
--- a/libsoup/soup-status.h
+++ b/libsoup/soup-status.h
@@ -109,84 +109,6 @@ guint soup_status_proxify (guint status_code);
SOUP_AVAILABLE_IN_2_4
GQuark soup_http_error_quark (void);
-#ifndef SOUP_DISABLE_DEPRECATED
-/* For introspection purposes, we create a duplicate enum type under
- * the deprecated type name, since some (all?) bindings don't handle
- * enum type typedefs the way we want.
- */
-typedef enum {
- SOUP_KNOWN_STATUS_CODE_NONE,
-
- SOUP_KNOWN_STATUS_CODE_CANCELLED = 1,
- SOUP_KNOWN_STATUS_CODE_CANT_RESOLVE,
- SOUP_KNOWN_STATUS_CODE_CANT_RESOLVE_PROXY,
- SOUP_KNOWN_STATUS_CODE_CANT_CONNECT,
- SOUP_KNOWN_STATUS_CODE_CANT_CONNECT_PROXY,
- SOUP_KNOWN_STATUS_CODE_SSL_FAILED,
- SOUP_KNOWN_STATUS_CODE_IO_ERROR,
- SOUP_KNOWN_STATUS_CODE_MALFORMED,
- SOUP_KNOWN_STATUS_CODE_TRY_AGAIN,
- SOUP_KNOWN_STATUS_CODE_TOO_MANY_REDIRECTS,
- SOUP_KNOWN_STATUS_CODE_TLS_FAILED,
-
- SOUP_KNOWN_STATUS_CODE_CONTINUE = 100,
- SOUP_KNOWN_STATUS_CODE_SWITCHING_PROTOCOLS = 101,
- SOUP_KNOWN_STATUS_CODE_PROCESSING = 102,
-
- SOUP_KNOWN_STATUS_CODE_OK = 200,
- SOUP_KNOWN_STATUS_CODE_CREATED = 201,
- SOUP_KNOWN_STATUS_CODE_ACCEPTED = 202,
- SOUP_KNOWN_STATUS_CODE_NON_AUTHORITATIVE = 203,
- SOUP_KNOWN_STATUS_CODE_NO_CONTENT = 204,
- SOUP_KNOWN_STATUS_CODE_RESET_CONTENT = 205,
- SOUP_KNOWN_STATUS_CODE_PARTIAL_CONTENT = 206,
- SOUP_KNOWN_STATUS_CODE_MULTI_STATUS = 207,
-
- SOUP_KNOWN_STATUS_CODE_MULTIPLE_CHOICES = 300,
- SOUP_KNOWN_STATUS_CODE_MOVED_PERMANENTLY = 301,
- SOUP_KNOWN_STATUS_CODE_FOUND = 302,
- SOUP_KNOWN_STATUS_CODE_MOVED_TEMPORARILY = 302,
- SOUP_KNOWN_STATUS_CODE_SEE_OTHER = 303,
- SOUP_KNOWN_STATUS_CODE_NOT_MODIFIED = 304,
- SOUP_KNOWN_STATUS_CODE_USE_PROXY = 305,
- SOUP_KNOWN_STATUS_CODE_NOT_APPEARING_IN_THIS_PROTOCOL = 306,
- SOUP_KNOWN_STATUS_CODE_TEMPORARY_REDIRECT = 307,
-
- SOUP_KNOWN_STATUS_CODE_BAD_REQUEST = 400,
- SOUP_KNOWN_STATUS_CODE_UNAUTHORIZED = 401,
- SOUP_KNOWN_STATUS_CODE_PAYMENT_REQUIRED = 402,
- SOUP_KNOWN_STATUS_CODE_FORBIDDEN = 403,
- SOUP_KNOWN_STATUS_CODE_NOT_FOUND = 404,
- SOUP_KNOWN_STATUS_CODE_METHOD_NOT_ALLOWED = 405,
- SOUP_KNOWN_STATUS_CODE_NOT_ACCEPTABLE = 406,
- SOUP_KNOWN_STATUS_CODE_PROXY_AUTHENTICATION_REQUIRED = 407,
- SOUP_KNOWN_STATUS_CODE_PROXY_UNAUTHORIZED =
SOUP_KNOWN_STATUS_CODE_PROXY_AUTHENTICATION_REQUIRED,
- SOUP_KNOWN_STATUS_CODE_REQUEST_TIMEOUT = 408,
- SOUP_KNOWN_STATUS_CODE_CONFLICT = 409,
- SOUP_KNOWN_STATUS_CODE_GONE = 410,
- SOUP_KNOWN_STATUS_CODE_LENGTH_REQUIRED = 411,
- SOUP_KNOWN_STATUS_CODE_PRECONDITION_FAILED = 412,
- SOUP_KNOWN_STATUS_CODE_REQUEST_ENTITY_TOO_LARGE = 413,
- SOUP_KNOWN_STATUS_CODE_REQUEST_URI_TOO_LONG = 414,
- SOUP_KNOWN_STATUS_CODE_UNSUPPORTED_MEDIA_TYPE = 415,
- SOUP_KNOWN_STATUS_CODE_REQUESTED_RANGE_NOT_SATISFIABLE = 416,
- SOUP_KNOWN_STATUS_CODE_INVALID_RANGE =
SOUP_KNOWN_STATUS_CODE_REQUESTED_RANGE_NOT_SATISFIABLE,
- SOUP_KNOWN_STATUS_CODE_EXPECTATION_FAILED = 417,
- SOUP_KNOWN_STATUS_CODE_UNPROCESSABLE_ENTITY = 422,
- SOUP_KNOWN_STATUS_CODE_LOCKED = 423,
- SOUP_KNOWN_STATUS_CODE_FAILED_DEPENDENCY = 424,
-
- SOUP_KNOWN_STATUS_CODE_INTERNAL_SERVER_ERROR = 500,
- SOUP_KNOWN_STATUS_CODE_NOT_IMPLEMENTED = 501,
- SOUP_KNOWN_STATUS_CODE_BAD_GATEWAY = 502,
- SOUP_KNOWN_STATUS_CODE_SERVICE_UNAVAILABLE = 503,
- SOUP_KNOWN_STATUS_CODE_GATEWAY_TIMEOUT = 504,
- SOUP_KNOWN_STATUS_CODE_HTTP_VERSION_NOT_SUPPORTED = 505,
- SOUP_KNOWN_STATUS_CODE_INSUFFICIENT_STORAGE = 507,
- SOUP_KNOWN_STATUS_CODE_NOT_EXTENDED = 510
-} SoupKnownStatusCode;
-#endif
-
G_END_DECLS
#endif /* __SOUP_STATUS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]