Skip to content
Snippets Groups Projects
Commit fcf718cb authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Remove functions only used by a failing test

parent 028b2835
Branches
Tags
No related merge requests found
......@@ -275,46 +275,6 @@ gchar* account_list_get_current_id (void)
return "";
}
int account_list_get_sip_account_number (void)
{
int n;
guint size, i;
account_t *current;
size = account_list_get_size();
n = 0;
for (i=0; i<size ; i++) {
current = account_list_get_nth (i);
if (current && strcmp (g_hash_table_lookup (current->properties, ACCOUNT_TYPE), "SIP") == 0)
n++;
}
return n;
}
int account_list_get_iax_account_number (void)
{
int n;
guint size, i;
account_t *current;
size = account_list_get_size();
n = 0;
for (i=0; i<size ; i++) {
current = account_list_get_nth (i);
if (strcmp (g_hash_table_lookup (current->properties, ACCOUNT_TYPE), "IAX") == 0)
n++;
}
return n;
}
gchar * account_list_get_ordered_list (void)
{
......@@ -407,4 +367,3 @@ gboolean current_account_has_new_message (void)
return FALSE;
}
......@@ -191,16 +191,6 @@ void account_list_move_down (guint index);
*/
gchar* account_list_get_current_id (void);
/**
* Returns the number of SIP accounts that have been configured
*/
int account_list_get_sip_account_number (void);
/**
* Returns the number of IAX accounts that have been configured
*/
int account_list_get_iax_account_number (void);
gchar * account_list_get_ordered_list (void);
guint account_list_get_position (account_t *account);
......
......@@ -101,16 +101,6 @@ START_TEST (test_get_by_id)
}
END_TEST
START_TEST (test_sip_account)
{
account_t *test = create_test_account ("test");
account_list_init ();
account_list_add (test);
fail_unless (account_list_get_sip_account_number () == 1, "ERROR - BAD SIP ACCOUNT NUMBER");
}
END_TEST
START_TEST (test_get_account_position)
{
guint pos, pos1;
......@@ -179,7 +169,6 @@ global_suite (void)
TCase *tc_cases = tcase_create ("Accounts");
tcase_add_test (tc_cases, test_add_account);
tcase_add_test (tc_cases, test_ordered_list);
tcase_add_test (tc_cases, test_sip_account);
tcase_add_test (tc_cases, test_get_by_id);
tcase_add_test (tc_cases, test_get_account_position);
tcase_add_test (tc_cases, test_get_current_account);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment