mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
util: remove libevent <= 2.0.18 back-compat code
Now that we require libevent >=2.0.21, remove backwards compatibility code for older versions.
This commit is contained in:
parent
ecf580e40f
commit
6045a14642
2 changed files with 0 additions and 7 deletions
|
@ -93,9 +93,6 @@ static void SetupCliArgs(ArgsManager& argsman)
|
|||
/** libevent event log callback */
|
||||
static void libevent_log_cb(int severity, const char *msg)
|
||||
{
|
||||
#ifndef EVENT_LOG_ERR // EVENT_LOG_ERR was added in 2.0.19; but before then _EVENT_LOG_ERR existed.
|
||||
# define EVENT_LOG_ERR _EVENT_LOG_ERR
|
||||
#endif
|
||||
// Ignore everything other than errors
|
||||
if (severity >= EVENT_LOG_ERR) {
|
||||
throw std::runtime_error(strprintf("libevent error: %s", msg));
|
||||
|
|
|
@ -338,10 +338,6 @@ static void HTTPWorkQueueRun(WorkQueue<HTTPClosure>* queue, int worker_num)
|
|||
/** libevent event log callback */
|
||||
static void libevent_log_cb(int severity, const char *msg)
|
||||
{
|
||||
#ifndef EVENT_LOG_WARN
|
||||
// EVENT_LOG_WARN was added in 2.0.19; but before then _EVENT_LOG_WARN existed.
|
||||
# define EVENT_LOG_WARN _EVENT_LOG_WARN
|
||||
#endif
|
||||
if (severity >= EVENT_LOG_WARN) // Log warn messages and higher without debug category
|
||||
LogPrintf("libevent: %s\n", msg);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue