Revert "Added ui_already_connected"

This reverts commit e97ec56fce.
This commit is contained in:
James Booth
2014-04-12 15:20:19 +01:00
parent 6dabbbd541
commit 2fafcf0013
6 changed files with 5 additions and 24 deletions

View File

@@ -19,11 +19,13 @@
static void test_with_connection_status(jabber_conn_status_t status)
{
stub_ui_already_connected();
mock_cons_show();
CommandHelp *help = malloc(sizeof(CommandHelp));
mock_connection_status(status);
expect_cons_show("You are either connected already, or a login is in process.");
gboolean result = cmd_connect(NULL, *help);
assert_true(result);

View File

@@ -82,11 +82,6 @@ char * _stub_ui_ask_password(void)
return NULL;
}
static
void _stub_ui_already_connected(void)
{
}
static
win_type_t _mock_ui_current_win_type(void)
{
@@ -263,12 +258,6 @@ stub_cons_show(void)
cons_show = _stub_cons_show;
}
void
stub_ui_already_connected(void)
{
ui_already_connected = _stub_ui_already_connected;
}
void
stub_ui_handle_recipient_not_found(void)
{

View File

@@ -66,6 +66,4 @@ void cons_show_roster_expect(GSList *list);
void ui_switch_win_expect_and_return(int given_i, gboolean result);
void stub_ui_already_connected(void);
#endif
#endif