Adam Ierymenko 5 years ago
parent
commit
57710cbc38
2 changed files with 2 additions and 11 deletions
  1. 0 2
      CMakeLists.txt
  2. 2 9
      node/Trace.hpp

+ 0 - 2
CMakeLists.txt

@@ -31,8 +31,6 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
 endif()
 
 option(BUILD_CENTRAL_CONTROLLER "Build ZeroTier Central Controller" OFF)
-option(ZT_TRACE "Trace Messages" OFF)
-option(ZT_DEBUG_TRACE "Debug Trace Messages" OFF)
 
 if (BUILD_CENTRAL_CONTROLLER)
 	find_package(PostgreSQL REQUIRED)

+ 2 - 9
node/Trace.hpp

@@ -57,15 +57,8 @@ public:
 	public:
 		ZT_ALWAYS_INLINE RuleResultLog() { this->clear(); }
 
-		ZT_ALWAYS_INLINE void log(const unsigned int rn,const uint8_t thisRuleMatches,const uint8_t thisSetMatches)
-		{
-			_l[rn >> 1U] |= ( ((thisRuleMatches + 1U) << 2U) | (thisSetMatches + 1U) ) << ((rn & 1U) << 2U);
-		}
-		ZT_ALWAYS_INLINE void logSkipped(const unsigned int rn,const uint8_t thisSetMatches)
-		{
-			_l[rn >> 1U] |= (thisSetMatches + 1U) << ((rn & 1U) << 2U);
-		}
-
+		ZT_ALWAYS_INLINE void log(const unsigned int rn,const uint8_t thisRuleMatches,const uint8_t thisSetMatches) { _l[rn >> 1U] |= ( ((thisRuleMatches + 1U) << 2U) | (thisSetMatches + 1U) ) << ((rn & 1U) << 2U); }
+		ZT_ALWAYS_INLINE void logSkipped(const unsigned int rn,const uint8_t thisSetMatches) { _l[rn >> 1U] |= (thisSetMatches + 1U) << ((rn & 1U) << 2U); }
 		ZT_ALWAYS_INLINE void clear() { memset(_l,0,sizeof(_l)); }
 
 		ZT_ALWAYS_INLINE const uint8_t *data() const { return _l; }