Author: biurrun Date: Wed Nov 25 14:35:41 2009 New Revision: 1777 Log: Remove unused function pisa_mgmt_remove_userlist_entry_by_name(). Modified: trunk/pairing/management.c trunk/pairing/management.h Modified: trunk/pairing/management.c ============================================================================== --- trunk/pairing/management.c Wed Nov 25 13:43:58 2009 (r1776) +++ trunk/pairing/management.c Wed Nov 25 14:35:41 2009 (r1777) @@ -958,31 +958,6 @@ return result; } -/** - * Removes a user_entry from the users configuration file - * - * @param name Search for the entry by the given username. - * - * @return 0-> Error, 1-> Success - */ -int pisa_mgmt_remove_userlist_entry_by_name(char *name) -{ - pisa_userlist *ul; - pisa_userlist_entry *entry; - int result = 0; - - ul = pisa_userlist_build(USERS_SECTION); - entry = pisa_userlist_find_username(ul, name); - - if (entry != NULL) - { - result = pisa_userlist_entry_remove(entry); - } - - pisa_userlist_destroy(ul); - return result; -} - /** Main program that will be run on the user's computer. */ Modified: trunk/pairing/management.h ============================================================================== --- trunk/pairing/management.h Wed Nov 25 13:43:58 2009 (r1776) +++ trunk/pairing/management.h Wed Nov 25 14:35:41 2009 (r1777) @@ -108,6 +108,5 @@ void pisa_userhitlist_entry_print(pisa_userhitlist_entry *entry,enum list_mode list_mode); int pisa_mgmt_users_config_write(pisa_userhitlist_entry *new_entry); int pisa_mgmt_remove_userlist_entry_by_hit(char *hit); -int pisa_mgmt_remove_userlist_entry_by_name(char *name); #endif /* PISA_MANAGEMENT_H */