Skip to content

Commit 6045a14

Browse files
committed
util: remove libevent <= 2.0.18 back-compat code
Now that we require libevent >=2.0.21, remove backwards compatibility code for older versions.
1 parent ecf580e commit 6045a14

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/bitcoin-cli.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ static void SetupCliArgs(ArgsManager& argsman)
9393
/** libevent event log callback */
9494
static void libevent_log_cb(int severity, const char *msg)
9595
{
96-
#ifndef EVENT_LOG_ERR // EVENT_LOG_ERR was added in 2.0.19; but before then _EVENT_LOG_ERR existed.
97-
# define EVENT_LOG_ERR _EVENT_LOG_ERR
98-
#endif
9996
// Ignore everything other than errors
10097
if (severity >= EVENT_LOG_ERR) {
10198
throw std::runtime_error(strprintf("libevent error: %s", msg));

src/httpserver.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,6 @@ static void HTTPWorkQueueRun(WorkQueue<HTTPClosure>* queue, int worker_num)
338338
/** libevent event log callback */
339339
static void libevent_log_cb(int severity, const char *msg)
340340
{
341-
#ifndef EVENT_LOG_WARN
342-
// EVENT_LOG_WARN was added in 2.0.19; but before then _EVENT_LOG_WARN existed.
343-
# define EVENT_LOG_WARN _EVENT_LOG_WARN
344-
#endif
345341
if (severity >= EVENT_LOG_WARN) // Log warn messages and higher without debug category
346342
LogPrintf("libevent: %s\n", msg);
347343
else

0 commit comments

Comments
 (0)