From ae1ccca038b2ba618c55e8498659ee46d8013078 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 26 Jul 2019 15:55:42 -0700 Subject: [PATCH] ircd::m::event::prev: Remove ambiguous overload. --- include/ircd/m/event/prev.h | 1 - ircd/m_event.cc | 13 +------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/ircd/m/event/prev.h b/include/ircd/m/event/prev.h index 33238a3a8..3ac59872f 100644 --- a/include/ircd/m/event/prev.h +++ b/include/ircd/m/event/prev.h @@ -14,7 +14,6 @@ namespace ircd::m { bool for_each(const event::prev &, const event::id::closure_bool &); - void for_each(const event::prev &, const event::id::closure &); size_t degree(const event::prev &); size_t count(const event::prev &); diff --git a/ircd/m_event.cc b/ircd/m_event.cc index d60abcd93..c96b8de1a 100644 --- a/ircd/m_event.cc +++ b/ircd/m_event.cc @@ -2788,18 +2788,6 @@ const } } -void -ircd::m::for_each(const event::prev &prev, - const event::id::closure &closure) -{ - m::for_each(prev, event::id::closure_bool{[&closure] - (const event::id &event_id) - { - closure(event_id); - return true; - }}); -} - bool ircd::m::for_each(const event::prev &prev, const event::id::closure_bool &closure) @@ -3676,6 +3664,7 @@ ircd::m::count(const event::prev &prev) m::for_each(prev, [&ret](const event::id &event_id) { ++ret; + return true; }); return ret;