diff --git a/sflphone-common/src/voiplink.cpp b/sflphone-common/src/voiplink.cpp index 8a013e98403b4ce98a6caa71b9b3dae6b85a318d..34a53c4b2145ee43a836b90c72fc0fa042abd2d5 100644 --- a/sflphone-common/src/voiplink.cpp +++ b/sflphone-common/src/voiplink.cpp @@ -102,8 +102,5 @@ bool VoIPLink::clearCallMap() Account* VoIPLink::getAccountPtr (void) { - std::string id; - - id = getAccountID(); - return Manager::instance().getAccount (id); + return Manager::instance().getAccount (_accountID); } diff --git a/sflphone-common/src/voiplink.h b/sflphone-common/src/voiplink.h index ade80d37f1a81253138060eb9c69ed977fc1b836..2a0339b21fee44ea2b5f8fb30942547d952a7f1c 100644 --- a/sflphone-common/src/voiplink.h +++ b/sflphone-common/src/voiplink.h @@ -231,13 +231,6 @@ class VoIPLink Account* getAccountPtr (void); - /** - * @param accountID The account identifier - */ - void setAccountID (const std::string& accountID) { - _accountID = accountID; - } - /** * Get the call pointer from the call map (protected by mutex) * @param id A Call ID