pidgin/pidgin

simple: Remove unused listenfd struct member.

2020-05-18, Elliott Sales de Andrade
f48ae2077684
simple: Remove unused listenfd struct member.

It is always -1 now, and never set to anything because there is no
longer a TCP listener using purple_network_listen.
--- a/libpurple/protocols/simple/simple.c Sat May 16 17:00:20 2020 -0400
+++ b/libpurple/protocols/simple/simple.c Mon May 18 19:28:04 2020 -0400
@@ -2059,7 +2059,6 @@
purple_connection_set_protocol_data(gc, sip);
sip->gc = gc;
sip->fd = -1;
- sip->listenfd = -1;
sip->account = account;
sip->registerexpire = 900;
sip->udp = purple_account_get_bool(account, "udp", FALSE);
@@ -2149,8 +2148,6 @@
if (sip->fd >= 0)
close(sip->fd);
- if (sip->listenfd >= 0)
- close(sip->listenfd);
g_free(sip->servername);
g_free(sip->username);
--- a/libpurple/protocols/simple/simple.h Sat May 16 17:00:20 2020 -0400
+++ b/libpurple/protocols/simple/simple.h Mon May 18 19:28:04 2020 -0400
@@ -103,7 +103,6 @@
int registerstatus; /* 0 nothing, 1 first registration send, 2 auth received, 3 registered */
struct sip_auth registrar;
struct sip_auth proxy;
- int listenfd;
int listenport;
int listenpa;
gchar *status;