aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/oscar/buddylist.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/oscar/buddylist.c')
-rw-r--r--protocols/oscar/buddylist.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/protocols/oscar/buddylist.c b/protocols/oscar/buddylist.c
index a7b461f2..3335c5ab 100644
--- a/protocols/oscar/buddylist.c
+++ b/protocols/oscar/buddylist.c
@@ -90,61 +90,3 @@ int buddylist_modfirst(aim_session_t *sess, aim_module_t *mod)
return 0;
}
-
-/*
- * aim_add_buddy()
- *
- * Adds a single buddy to your buddy list after login.
- *
- * XXX this should just be an extension of setbuddylist()
- *
- */
-int aim_add_buddy(aim_session_t *sess, aim_conn_t *conn, const char *sn)
-{
- aim_frame_t *fr;
- aim_snacid_t snacid;
-
- if (!sn || !strlen(sn))
- return -EINVAL;
-
- if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+1+strlen(sn))))
- return -ENOMEM;
-
- snacid = aim_cachesnac(sess, 0x0003, 0x0004, 0x0000, sn, strlen(sn)+1);
- aim_putsnac(&fr->data, 0x0003, 0x0004, 0x0000, snacid);
-
- aimbs_put8(&fr->data, strlen(sn));
- aimbs_putraw(&fr->data, (guint8 *)sn, strlen(sn));
-
- aim_tx_enqueue(sess, fr);
-
- return 0;
-}
-
-/*
- * XXX generalise to support removing multiple buddies (basically, its
- * the same as setbuddylist() but with a different snac subtype).
- *
- */
-int aim_remove_buddy(aim_session_t *sess, aim_conn_t *conn, const char *sn)
-{
- aim_frame_t *fr;
- aim_snacid_t snacid;
-
- if (!sn || !strlen(sn))
- return -EINVAL;
-
- if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+1+strlen(sn))))
- return -ENOMEM;
-
- snacid = aim_cachesnac(sess, 0x0003, 0x0005, 0x0000, sn, strlen(sn)+1);
- aim_putsnac(&fr->data, 0x0003, 0x0005, 0x0000, snacid);
-
- aimbs_put8(&fr->data, strlen(sn));
- aimbs_putraw(&fr->data, (guint8 *)sn, strlen(sn));
-
- aim_tx_enqueue(sess, fr);
-
- return 0;
-}
-