From dd294a6cc7702ed8ed11d951143724cc9699f6e0 Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
Date: Wed, 14 Jul 2010 15:49:39 -0400
Subject: [PATCH] [#3649] Remove okd buildConfiguration from yaml parser

---
 sflphone-common/src/config/yamlparser.cpp | 58 -----------------------
 1 file changed, 58 deletions(-)

diff --git a/sflphone-common/src/config/yamlparser.cpp b/sflphone-common/src/config/yamlparser.cpp
index a132d08f7c..62f9ee23a4 100644
--- a/sflphone-common/src/config/yamlparser.cpp
+++ b/sflphone-common/src/config/yamlparser.cpp
@@ -467,62 +467,4 @@ void YamlParser::mainNativeDataMapping(MappingNode *map) {
   _debug("Done");
 }
 
-  /*
-void YamlParser::buildAccounts(SequenceNode *seq) {
-
-  // Each element in sequence is a new account to create
-  Sequence::iterator iterSeq = seq->getSequence()->begin();
-
-  MappingNode *map;
-
-  Key accTypeKey("type");
-  while(iterSeq != seq->getSequence()->end()) {
-
-    map = (MappingNode *)(*iterSeq);
-
-    ScalarNode * val = (ScalarNode *)(map->getValue(accTypeKey));
-    Value accountType = val->getValue();
-
-    iterSeq++;
-
-    if (accountType == "sip") {
-      // tmpAccount = AccountCreator::createAccount(AccountCreator::SIP_ACCOUNT, *iter);
-      _debug("Account is SIP!!!");
-    }
-    else if (accountType == "iax") {
-      // tmpAccount = AccountCreator::createAccount(AccountCreator::IAX_ACCOUNT, *iter);
-    }
-
-  
-  std::string accountType;
-
-  accountType = getConfigString(*iter, CONFIG_ACCOUNT_TYPE);
-  
-  if (accountType == "SIP") {
-    tmpAccount = AccountCreator::createAccount(
-					       AccountCreator::SIP_ACCOUNT, *iter);
-  }
-
-  else if (accountType == "IAX") {
-    tmpAccount = AccountCreator::createAccount(
-					       AccountCreator::IAX_ACCOUNT, *iter);
-  }
-
-  else {
-    _error ("Unknown %s param in config file (%s)", CONFIG_ACCOUNT_TYPE, accountType.c_str());
-  }
-  
-  if (tmpAccount != NULL) {
-    _debug ("Loading account %s ", iter->c_str());
-    _accountMap[iter->c_str()] = tmpAccount;
-    // tmpAccount->setVoIPLink(SIPVoIPLink::instance (""));
-    tmpAccount->setVoIPLink();
-    nbAccount++;
-  }
-
-  iter++;
-  */
-//  }
-
-//}
 }
-- 
GitLab