]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1266] clean up
authorRazvan Becheriu <razvan@isc.org>
Wed, 3 Jun 2020 11:51:26 +0000 (14:51 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 3 Jun 2020 11:51:26 +0000 (14:51 +0300)
src/lib/log/logger.h

index eee8b3e5d596bc6542938e9c7f0c5d9e7b5b9978..d615ec4171468a4e0dafd79ed93e8f39d6cc774a 100644 (file)
@@ -8,14 +8,11 @@
 #define LOGGER_H
 
 #include <atomic>
-#include <cassert>
 #include <cstdlib>
 #include <cstring>
 #include <mutex>
 #include <string>
 
-#include <boost/static_assert.hpp>
-
 #include <exceptions/exceptions.h>
 #include <log/logger_impl.h>
 #include <log/logger_level.h>
@@ -84,8 +81,7 @@ class InterprocessSync;
 /// the string passed to the Logger constructor) to a maximum of 31 characters.
 /// There is no reason for this particular value other than limiting the amount
 /// of memory used.  It is defined by the constant Logger::MAX_LOGGER_NAME_SIZE,
-/// and can be made larger (or smaller) if so desired.  Note however, using a
-/// logger name larger than this limit will cause an assertion failure.
+/// and can be made larger (or smaller) if so desired.
 
 class LoggerImpl;   // Forward declaration of the implementation class
 
@@ -182,11 +178,6 @@ public:
             }
         }
 
-        // The checks above and the assertion below ensure that the contents of
-        // "name" plus a trailing null will fit into the space allocated for
-        // "name_".
-        BOOST_STATIC_ASSERT(MAX_LOGGER_NAME_SIZE < sizeof(name_));
-
         // Do the copy, ensuring a trailing NULL in all cases.
         std::strncpy(name_, name, MAX_LOGGER_NAME_SIZE);
         name_[MAX_LOGGER_NAME_SIZE] = '\0';