Skip to content

Commit

Permalink
Removed unused createCatalog method. Refs #9084.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Mar 3, 2014
1 parent 958100f commit 21a90b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Expand Up @@ -13,8 +13,6 @@ namespace Mantid
class CatalogAlgorithmHelper
{
public:
/// Create a catalog to use in the algorithms.
API::ICatalog_sptr createCatalog();
/// Obtain the error message returned by the IDS.
const std::string getIDSError(Poco::Net::HTTPResponse::HTTPStatus &HTTPStatus, std::istream& responseStream);
};
Expand Down
20 changes: 0 additions & 20 deletions Code/Mantid/Framework/ICat/src/CatalogAlgorithmHelper.cpp
Expand Up @@ -8,26 +8,6 @@ namespace Mantid
{
namespace ICat
{

/**
* Create a catalog to use in the algorithms.
* @return A pointer to the catalog class.
*/
API::ICatalog_sptr CatalogAlgorithmHelper::createCatalog()
{
API::ICatalog_sptr catalog;
try
{
catalog = API::CatalogFactory::Instance().create(Kernel::ConfigService::Instance().getFacility().catalogInfo().catalogName());
}
catch(Kernel::Exception::NotFoundError&)
{
throw std::runtime_error("Your current Facility: " + Kernel::ConfigService::Instance().getFacility().name() + " does not have catalog information.\n");
}
return catalog;
}


/**
* Obtain the error message returned by the IDS.
* @param HTTPStatus :: The HTTPStatus returned by the IDS.
Expand Down

0 comments on commit 21a90b4

Please sign in to comment.