Remove unused functions for adding/removing multiple buddies
Libpurple will automatically iterate the list of buddies and call purple_add_buddy for each entrie if those functions are missing.
This commit is contained in:
parent
106f828b9e
commit
4dba56db58
1 changed files with 2 additions and 10 deletions
|
@ -717,10 +717,6 @@ static void tgprpl_add_buddy (PurpleConnection * gc, PurpleBuddy * buddy, Purple
|
|||
tgl_do_add_contact (conn->TLS, buddy->name, (int)strlen (buddy->name), first, (int)strlen (first), "", 0, 0, on_contact_added, buddy);
|
||||
}
|
||||
|
||||
static void tgprpl_add_buddies (PurpleConnection * gc, GList * buddies, GList * groups) {
|
||||
debug ("tgprpl_add_buddies()\n");
|
||||
}
|
||||
|
||||
static void tgprpl_remove_buddy (PurpleConnection * gc, PurpleBuddy * buddy, PurpleGroup * group) {
|
||||
debug ("tgprpl_remove_buddy()\n");
|
||||
if (!buddy) { return; }
|
||||
|
@ -732,10 +728,6 @@ static void tgprpl_remove_buddy (PurpleConnection * gc, PurpleBuddy * buddy, Pur
|
|||
tgl_do_del_contact (conn->TLS, user->id, NULL, NULL);
|
||||
}
|
||||
|
||||
static void tgprpl_remove_buddies (PurpleConnection * gc, GList * buddies, GList * groups){
|
||||
debug ("tgprpl_remove_buddies()\n");
|
||||
}
|
||||
|
||||
static void tgprpl_add_deny (PurpleConnection * gc, const char *name){
|
||||
debug ("tgprpl_add_deny()\n");
|
||||
}
|
||||
|
@ -882,9 +874,9 @@ static PurplePluginProtocolInfo prpl_info = {
|
|||
NULL, // set_idle
|
||||
NULL, // change_passwd
|
||||
tgprpl_add_buddy,
|
||||
tgprpl_add_buddies,
|
||||
NULL, // add_buddies
|
||||
tgprpl_remove_buddy,
|
||||
tgprpl_remove_buddies,
|
||||
NULL, // remove_buddies
|
||||
NULL, // add_permit
|
||||
tgprpl_add_deny,
|
||||
NULL, // rem_permit
|
||||
|
|
Loading…
Add table
Reference in a new issue