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:
parent
5edd7a6117
commit
ae1ccca038
2 changed files with 1 additions and 13 deletions
|
@ -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 &);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue