diff options
author | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2023-03-10 11:15:43 +0100 |
---|---|---|
committer | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2023-03-11 15:05:03 +0100 |
commit | 92eed34fb3ae8148ab71ae7581c3f01e46606d28 (patch) | |
tree | eb9138eb9fd8b95694444b216c3ce771a810a699 /src/xmpp | |
parent | f618b9cc16c37aa832202340f2f4cf2b29348026 (diff) | |
download | profani-tty-92eed34fb3ae8148ab71ae7581c3f01e46606d28.tar.gz |
remove compat code
We already depend on libstrophe >= 0.12, so this code can go. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/connection.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 3165a18e..be0c8418 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -847,8 +847,6 @@ connection_set_priority(const int priority) conn.priority = priority; } -#if defined(LIBXMPP_VERSION_MAJOR) && defined(LIBXMPP_VERSION_MINOR) \ - && ((LIBXMPP_VERSION_MAJOR > 0) || (LIBXMPP_VERSION_MINOR >= 12)) static xmpp_stanza_t* _get_soh_error(xmpp_stanza_t* error_stanza) { @@ -857,19 +855,6 @@ _get_soh_error(xmpp_stanza_t* error_stanza) XMPP_STANZA_NAME_IN_NS("see-other-host", STANZA_NS_XMPP_STREAMS), NULL); } -#else -static xmpp_stanza_t* -_get_soh_error(xmpp_stanza_t* error_stanza) -{ - const char* name = xmpp_stanza_get_name(error_stanza); - const char* ns = xmpp_stanza_get_ns(error_stanza); - if (!name || !ns || strcmp(name, "error") || strcmp(ns, STANZA_NS_STREAMS)) { - log_debug("_get_soh_error: could not find error stanza"); - return NULL; - } - return xmpp_stanza_get_child_by_name_and_ns(error_stanza, "see-other-host", STANZA_NS_XMPP_STREAMS); -} -#endif #if GLIB_CHECK_VERSION(2, 66, 0) static gboolean |