[libsoup/wip/new-master: 10/57] Remove deprecated SoupLogger APIs
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/new-master: 10/57] Remove deprecated SoupLogger APIs
- Date: Sat, 19 Sep 2020 21:01:06 +0000 (UTC)
commit a490faf086d21d6906ae3f02ed7278b8bde818c3
Author: Patrick Griffis <pgriffis igalia com>
Date: Wed Feb 12 13:46:50 2020 -0800
Remove deprecated SoupLogger APIs
docs/reference/libsoup-2.4-sections.txt | 2 --
libsoup/soup-logger.c | 37 ---------------------------------
libsoup/soup-logger.h | 11 ----------
3 files changed, 50 deletions(-)
---
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index 521ab282..17fe6462 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -850,8 +850,6 @@ soup_xmlrpc_fault_quark
SoupLogger
SoupLoggerLogLevel
soup_logger_new
-soup_logger_attach
-soup_logger_detach
<SUBSECTION>
SoupLoggerFilter
soup_logger_set_request_filter
diff --git a/libsoup/soup-logger.c b/libsoup/soup-logger.c
index 73d8278c..59ee0e4e 100644
--- a/libsoup/soup-logger.c
+++ b/libsoup/soup-logger.c
@@ -437,43 +437,6 @@ soup_logger_set_id (SoupLogger *logger, gpointer object)
return GPOINTER_TO_UINT (id);
}
-/**
- * soup_logger_attach:
- * @logger: a #SoupLogger
- * @session: a #SoupSession
- *
- * Sets @logger to watch @session and print debug information for
- * its messages.
- *
- * (The session will take a reference on @logger, which will be
- * removed when you call soup_logger_detach(), or when the session is
- * destroyed.)
- *
- * Deprecated: Use soup_session_add_feature() instead.
- **/
-void
-soup_logger_attach (SoupLogger *logger,
- SoupSession *session)
-{
- soup_session_add_feature (session, SOUP_SESSION_FEATURE (logger));
-}
-
-/**
- * soup_logger_detach:
- * @logger: a #SoupLogger
- * @session: a #SoupSession
- *
- * Stops @logger from watching @session.
- *
- * Deprecated: Use soup_session_remove_feature() instead.
- **/
-void
-soup_logger_detach (SoupLogger *logger,
- SoupSession *session)
-{
- soup_session_remove_feature (session, SOUP_SESSION_FEATURE (logger));
-}
-
static void soup_logger_print (SoupLogger *logger, SoupLoggerLogLevel level,
char direction, const char *format, ...) G_GNUC_PRINTF (4, 5);
diff --git a/libsoup/soup-logger.h b/libsoup/soup-logger.h
index 9e36775c..9eaf3032 100644
--- a/libsoup/soup-logger.h
+++ b/libsoup/soup-logger.h
@@ -59,17 +59,6 @@ SOUP_AVAILABLE_IN_2_4
SoupLogger *soup_logger_new (SoupLoggerLogLevel level,
int max_body_size);
-#ifndef SOUP_DISABLE_DEPRECATED
-SOUP_AVAILABLE_IN_2_4
-SOUP_DEPRECATED_IN_2_24_FOR(soup_session_add_feature)
-void soup_logger_attach (SoupLogger *logger,
- SoupSession *session);
-SOUP_AVAILABLE_IN_2_4
-SOUP_DEPRECATED_IN_2_24_FOR(soup_session_remove_feature)
-void soup_logger_detach (SoupLogger *logger,
- SoupSession *session);
-#endif
-
SOUP_AVAILABLE_IN_2_4
void soup_logger_set_request_filter (SoupLogger *logger,
SoupLoggerFilter request_filter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]