diff Plugin/Token.cpp @ 115:0eed78c1e177

cache the UserProfile + updated http filter logic
author Alain Mazy <am@osimis.io>
date Fri, 08 Sep 2023 09:52:21 +0200
parents 43154740ea2e
children 9be1ee2b8fe1
line wrap: on
line diff
--- a/Plugin/Token.cpp	Wed Sep 06 17:02:41 2023 +0200
+++ b/Plugin/Token.cpp	Fri Sep 08 09:52:21 2023 +0200
@@ -27,20 +27,12 @@
     type_(type),
     key_(key)
   {
-    if (key.empty())
-    {
-      throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
-    }
   }
 
   Token::Token(const Token& other) :
     type_(other.GetType()),
     key_(other.GetKey())
   {
-    if (key_.empty())
-    {
-      throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
-    }
   }
 
 }