stk: Remove unneeded check

The agent_remove_source will be canceled as part of the session agent
destruction notify.
This commit is contained in:
Denis Kenzior 2010-07-30 18:50:38 -05:00
parent 41017a11f5
commit 8697cbbba8
1 changed files with 0 additions and 5 deletions

View File

@ -1307,11 +1307,6 @@ static void stk_unregister(struct ofono_atom *atom)
struct ofono_modem *modem = __ofono_atom_get_modem(atom);
const char *path = __ofono_atom_get_path(atom);
if (stk->remove_agent_source) {
g_source_remove(stk->remove_agent_source);
stk->remove_agent_source = 0;
}
if (stk->session_agent)
stk_agent_free(stk->session_agent);