changeset 1326:59b603763f43

removal of 2 unused functions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 13 Feb 2015 16:02:05 +0100
parents a761deb85729
children 6ed49334d5c1
files OrthancServer/OrthancInitialization.cpp
diffstat 1 files changed, 0 insertions(+), 46 deletions(-) [+]
line wrap: on
line diff
--- 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_);