aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-10-18 03:59:41 -0300
committerdequis <dx@dxzone.com.ar>2016-10-18 04:00:24 -0300
commitc94e20896107533058d7eae53d5244b10edc97f6 (patch)
tree7b7481cf5d53dc08e47be32654a79a6eaf3f6c66
parentb7fec480e00b1b9ba68a403d0b08366161c7c303 (diff)
oscar: remove some dead code
-rw-r--r--protocols/oscar/conn.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/protocols/oscar/conn.c b/protocols/oscar/conn.c
index ce29abce..3e84f1a4 100644
--- a/protocols/oscar/conn.c
+++ b/protocols/oscar/conn.c
@@ -382,9 +382,6 @@ aim_conn_t *aim_getconn_type_all(aim_session_t *sess, int type)
aim_conn_t *aim_newconn(aim_session_t *sess, int type, const char *dest)
{
aim_conn_t *connstruct;
- guint16 port = AIM_LOGIN_PORT;
- char *host;
- int i;
if (!(connstruct = aim_conn_getnext(sess))) {
return NULL;
@@ -399,29 +396,8 @@ aim_conn_t *aim_newconn(aim_session_t *sess, int type, const char *dest)
return connstruct;
}
- /*
- * As of 23 Jul 1999, AOL now sends the port number, preceded by a
- * colon, in the BOS redirect. This fatally breaks all previous
- * libfaims. Bad, bad AOL.
- *
- * We put this here to catch every case.
- *
- */
-
- for (i = 0; i < (int) strlen(dest); i++) {
- if (dest[i] == ':') {
- port = atoi(&(dest[i + 1]));
- break;
- }
- }
-
- host = (char *) g_malloc(i + 1);
- strncpy(host, dest, i);
- host[i] = '\0';
-
- connstruct->fd = proxy_connect(host, port, NULL, NULL);
-
- g_free(host);
+ /* The code that used to be here was very broken */
+ g_return_val_if_reached(connstruct);
return connstruct;
}