From 11da12d767fe43db8f2a96e489075b109d2a1f01 Mon Sep 17 00:00:00 2001 From: Abit Date: Sun, 25 Apr 2021 02:38:11 +0200 Subject: [PATCH] Remove unused code --- libraries/net/node.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/libraries/net/node.cpp b/libraries/net/node.cpp index 03fa07b940..034779a8c4 100644 --- a/libraries/net/node.cpp +++ b/libraries/net/node.cpp @@ -91,26 +91,6 @@ #include "node_impl.hxx" -#define INVOCATION_COUNTER(name) \ - static size_t total_ ## name ## _counter = 0; \ - static size_t active_ ## name ## _counter = 0; \ - struct name ## _invocation_logger { \ - size_t *total; \ - size_t *active; \ - name ## _invocation_logger(size_t *total, size_t *active) : \ - total(total), active(active) \ - { \ - ++*total; \ - ++*active; \ - dlog("NEWDEBUG: Entering " #name ", now ${total} total calls, ${active} active calls", ("total", *total)("active", *active)); \ - } \ - ~name ## _invocation_logger() \ - { \ - --*active; \ - dlog("NEWDEBUG: Leaving " #name ", now ${total} total calls, ${active} active calls", ("total", *total)("active", *active)); \ - } \ - } invocation_logger(&total_ ## name ## _counter, &active_ ## name ## _counter) - namespace graphene { namespace net { namespace detail { void blockchain_tied_message_cache::block_accepted()