0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

ircd:Ⓜ️:event::prev: Remove ambiguous overload.

This commit is contained in:
Jason Volk 2019-07-26 15:55:42 -07:00
parent 5edd7a6117
commit ae1ccca038
2 changed files with 1 additions and 13 deletions

View file

@ -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 &);

View file

@ -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;