GUAC-1389: Remove guac_common_cursor_remove_user() - no longer needed.

This commit is contained in:
Michael Jumper 2016-03-04 17:10:49 -08:00
parent 9e8790cbba
commit 432eb57b13
4 changed files with 0 additions and 38 deletions

View File

@ -362,12 +362,3 @@ void guac_common_cursor_set_blank(guac_common_cursor* cursor) {
}
void guac_common_cursor_remove_user(guac_common_cursor* cursor,
guac_user* user) {
/* Disassociate from given user */
if (cursor->user == user)
cursor->user = NULL;
}

View File

@ -252,19 +252,4 @@ void guac_common_cursor_set_ibar(guac_common_cursor* cursor);
*/
void guac_common_cursor_set_blank(guac_common_cursor* cursor);
/**
* Removes the given user, such that future synchronization will not occur.
* This is necessary when a user leaves the connection. If a user leaves the
* connection and this is not called, the corresponding guac_user and socket
* may cease to be valid, and future synchronization attempts will segfault.
*
* @param cursor
* The cursor to remove the user from.
*
* @param user
* The user to remove.
*/
void guac_common_cursor_remove_user(guac_common_cursor* cursor,
guac_user* user);
#endif

View File

@ -100,12 +100,3 @@ int guac_vnc_user_join_handler(guac_user* user, int argc, char** argv) {
}
int guac_vnc_user_leave_handler(guac_user* user) {
guac_vnc_client* vnc_client = (guac_vnc_client*) user->client->data;
guac_common_cursor_remove_user(vnc_client->display->cursor, user);
return 0;
}

View File

@ -32,10 +32,5 @@
*/
guac_user_join_handler guac_vnc_user_join_handler;
/**
* Handler for leaving users.
*/
guac_user_leave_handler guac_vnc_user_leave_handler;
#endif