# HG changeset patch # User Sebastien Jodogne # Date 1423839725 -3600 # Node ID 59b603763f4349c0b7c472239223934ae4591ae0 # Parent a761deb8572967cc64e239af58c0393050a6c8db removal of 2 unused functions diff -r a761deb85729 -r 59b603763f43 OrthancServer/OrthancInitialization.cpp --- a/OrthancServer/OrthancInitialization.cpp Fri Feb 13 15:03:51 2015 +0100 +++ b/OrthancServer/OrthancInitialization.cpp Fri Feb 13 16:02:05 2015 +0100 @@ -186,52 +186,6 @@ } - static std::string GetStringValue(const Json::Value& configuration, - const std::string& key, - const std::string& defaultValue) - { - if (configuration.type() != Json::objectValue) - { - throw OrthancException(ErrorCode_BadFileFormat); - } - - if (!configuration.isMember(key)) - { - return defaultValue; - } - - if (configuration[key].type() != Json::stringValue) - { - throw OrthancException(ErrorCode_BadFileFormat); - } - - return configuration[key].asString(); - } - - - static int GetIntegerValue(const Json::Value& configuration, - const std::string& key, - int defaultValue) - { - if (configuration.type() != Json::objectValue) - { - throw OrthancException(ErrorCode_BadFileFormat); - } - - if (!configuration.isMember(key)) - { - return defaultValue; - } - - if (configuration[key].type() != Json::intValue) - { - throw OrthancException(ErrorCode_BadFileFormat); - } - - return configuration[key].asInt(); - } - - void OrthancInitialize(const char* configurationFile) { boost::mutex::scoped_lock lock(globalMutex_);