From b4cbc8db0fe8e8092bbbb23c74b6c327daed9441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <rafael.carre@savoirfairelinux.com> Date: Thu, 28 Jul 2011 17:24:20 -0400 Subject: [PATCH] VoIPLink: simplify, remove unused method --- sflphone-common/src/voiplink.cpp | 5 +---- sflphone-common/src/voiplink.h | 7 ------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/sflphone-common/src/voiplink.cpp b/sflphone-common/src/voiplink.cpp index 8a013e9840..34a53c4b21 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 ade80d37f1..2a0339b21f 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 -- GitLab