From 0b1e168faef3d233ca3e88b7f9d7b2382f3d0fc2 Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
Date: Tue, 13 Jul 2010 15:53:00 -0400
Subject: [PATCH] [#3649] Reimplement deleteAllCredential

---
 sflphone-common/src/managerimpl.cpp | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/sflphone-common/src/managerimpl.cpp b/sflphone-common/src/managerimpl.cpp
index a84cf49134..72ef41378d 100755
--- a/sflphone-common/src/managerimpl.cpp
+++ b/sflphone-common/src/managerimpl.cpp
@@ -3484,19 +3484,6 @@ void ManagerImpl::deleteAllCredential (const AccountID& accountID) {
 
 	SIPAccount *sipaccount = (SIPAccount *)account; 
 
-        int numberOfCredential = sipaccount->getCredentialCount();
-
-	for (int i = 0; i < numberOfCredential; i++) {
-		std::string credentialIndex;
-		std::stringstream streamOut;
-		streamOut << i;
-		credentialIndex = streamOut.str();
-		std::string section = "Credential" + std::string(":") + accountID
-				+ std::string(":") + credentialIndex;
-
-		_config.removeSection(section);
-	}
-
 	if (accountID.empty() == false) {
 	  sipaccount->setCredentialCount(0);
 	}
-- 
GitLab