Skip to content

Commit

Permalink
Remove catalog limit. Refs #9112.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Mar 7, 2014
1 parent e84b03e commit 92a82c0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Code/Mantid/Framework/API/src/CatalogManager.cpp
Expand Up @@ -24,10 +24,6 @@ namespace Mantid
CatalogSession_sptr CatalogManagerImpl::login(const std::string& username,const std::string& password,
const std::string& endpoint,const std::string& facility)
{
// This is a temporary measure to ensure the user does not attempt to log into several facilities
// as that functionality is not quite supported.
if (m_activeCatalogs.size() >= 1) throw std::runtime_error("Multiple facility functionality is not yet supported.");

std::string className = Kernel::ConfigService::Instance().getFacility(facility).catalogInfo().catalogName();
auto catalog = CatalogFactory::Instance().create(className);
CatalogSession_sptr session = catalog->login(username,password,endpoint,facility);
Expand Down

0 comments on commit 92a82c0

Please sign in to comment.