pidgin: 1cd6cb6e: Remote more seemingly unnecessary stuff.
qulogic at pidgin.im
qulogic at pidgin.im
Fri May 21 18:02:35 EDT 2010
-----------------------------------------------------------------
Revision: 1cd6cb6ec7b28c28d241bca77951597e06e14a92
Ancestor: 200434e5a426d139cc3fcf71a12b4b6da547b8a7
Author: qulogic at pidgin.im
Date: 2010-05-05T08:14:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1cd6cb6ec7b28c28d241bca77951597e06e14a92
Modified files:
libpurple/protocols/msn/directconn.c
ChangeLog:
Remote more seemingly unnecessary stuff.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/directconn.c a8398f4b1813bf94755be824ebafeaf5c8a2e137
+++ libpurple/protocols/msn/directconn.c f2b4b2681c2173e6dbf67a7e66ffb6a67b38103d
@@ -375,151 +375,7 @@ msn_dc_serialize_binary_header(MsnDirect
return (const gchar *)&bin_header;
}
-/*
static void
-msn_dc_send_bye(MsnDirectConn *dc)
-{
- MsnSlpLink *slplink;
- PurpleAccount *account;
- char *body;
- int body_len;
-
- if (purple_debug_is_verbose())
- purple_debug_info("msn", "msn_dc_send_bye %p\n", dc);
-
- g_return_if_fail(dc != NULL);
- g_return_if_fail(dc->slpcall != NULL);
-
- slplink = dc->slpcall->slplink;
- account = slplink->session->account;
-
- dc->header.session_id = 0;
- dc->header.id = dc->slpcall->slplink->slp_seq_id++;
- dc->header.offset = 0;
-
- body = g_strdup_printf(
- "BYE MSNMSGR:%s MSNSLP/1.0\r\n"
- "To: <msnmsgr:%s>\r\n"
- "From: <msnmsgr:%s>\r\n"
- "Via: MSNSLP/1.0/TLP ;branch={%s}\r\n"
- "CSeq: 0\r\n"
- "Call-ID: {%s}\r\n"
- "Max-Forwards: 0\r\n"
- "Content-Type: application/x-msnmsgr-sessionclosebody\r\n"
- "Content-Length: 3\r\n"
- "\r\n\r\n",
-
- slplink->remote_user,
- slplink->remote_user,
- purple_account_get_username(account),
- dc->slpcall->branch,
- dc->slpcall->id
- );
- body_len = strlen(body) + 1;
- memcpy(dc->buffer, body, body_len);
- g_free(body);
-
- dc->header.total_size = body_len;
- dc->header.length = body_len;
- dc->header.flags = 0;
- dc->header.ack_sub_id = 0;
- dc->header.ack_size = 0;
-
- msn_dc_send_packet(dc);
-}
-
-static void
-msn_dc_send_ack(MsnDirectConn *dc)
-{
- g_return_if_fail(dc != NULL);
-
- dc->header.session_id = 0;
- dc->header.ack_sub_id = dc->header.ack_id;
- dc->header.ack_id = dc->header.id;
- dc->header.id = dc->slpcall->slplink->slp_seq_id++;
- dc->header.offset = 0;
- dc->header.length = 0;
- dc->header.flags = 0x02;
- dc->header.ack_size = dc->header.total_size;
-
- msn_dc_send_packet(dc);
-}
-
-static void
-msn_dc_send_data_ack(MsnDirectConn *dc)
-{
- g_return_if_fail(dc != NULL);
-
- dc->header.session_id = dc->slpcall->session_id;
- dc->header.ack_sub_id = dc->header.ack_id;
- dc->header.ack_id = dc->header.id;
- dc->header.id = dc->slpcall->slplink->slp_seq_id++;
- dc->header.offset = 0;
- dc->header.length = 0;
- dc->header.flags = 0x02;
- dc->header.ack_size = dc->header.total_size;
-
- msn_dc_send_packet(dc);
-}
-
-static void
-msn_dc_xfer_send_cancel(PurpleXfer *xfer)
-{
- MsnSlpCall *slpcall;
- MsnDirectConn *dc;
-
- purple_debug_info("msn", "msn_dc_xfer_send_cancel\n");
-
- g_return_if_fail(xfer != NULL);
-
- slpcall = xfer->data;
- g_return_if_fail(slpcall != NULL);
-
- dc = slpcall->dc;
- g_return_if_fail(dc != NULL);
-
- switch (dc->state) {
- case DC_STATE_TRANSFER:
- msn_dc_send_bye(dc);
- dc->state = DC_STATE_CANCELLED;
- break;
-
- default:
- msn_dc_destroy(dc);
- break;
- }
-}
-
-static void
-msn_dc_xfer_recv_cancel(PurpleXfer *xfer)
-{
- MsnSlpCall *slpcall;
- MsnDirectConn *dc;
-
- purple_debug_info("msn", "msn_dc_xfer_recv_cancel\n");
-
- g_return_if_fail(xfer != NULL);
-
- slpcall = xfer->data;
- g_return_if_fail(slpcall != NULL);
-
- dc = slpcall->dc;
- g_return_if_fail(dc != NULL);
-
- switch (dc->state) {
- case DC_STATE_TRANSFER:
- msn_dc_send_bye(dc);
- dc->state = DC_STATE_CANCELLED;
- break;
-
- default:
- msn_dc_destroy(dc);
- break;
- }
-}
-*/
-
-static void
msn_dc_send_cb(gpointer data, gint fd, PurpleInputCondition cond)
{
MsnDirectConn *dc = data;
More information about the Commits
mailing list