Skip to content

Commit

Permalink
Merge pull request #2424 from bitshares/remove-unused-code
Browse files Browse the repository at this point in the history
Remove unused code
  • Loading branch information
abitmore authored Apr 25, 2021
2 parents 3da9500 + 11da12d commit ba0abc3
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions libraries/net/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ba0abc3

Please sign in to comment.