mirror of
https://github.com/matrix-construct/construct
synced 2025-02-16 16:50:12 +01:00
ircd:Ⓜ️ Deinline these m::event related.
This commit is contained in:
parent
198aea3e8f
commit
1bf9997086
2 changed files with 19 additions and 19 deletions
|
@ -128,22 +128,3 @@ struct ircd::m::event::fetch
|
|||
friend bool seek(fetch &, const event::id &, std::nothrow_t);
|
||||
friend void seek(fetch &, const event::id &);
|
||||
};
|
||||
|
||||
inline bool
|
||||
ircd::m::event::fetch::valid(const event::id &event_id)
|
||||
const
|
||||
{
|
||||
return row.valid(event_id);
|
||||
}
|
||||
|
||||
inline bool
|
||||
ircd::m::my(const event &event)
|
||||
{
|
||||
return my(event::id(at<"event_id"_>(event)));
|
||||
}
|
||||
|
||||
inline bool
|
||||
ircd::m::my(const id::event &event_id)
|
||||
{
|
||||
return self::host(event_id.host());
|
||||
}
|
||||
|
|
|
@ -310,6 +310,18 @@ ircd::m::pretty_oneline(const event &event)
|
|||
return ret;
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::my(const event &event)
|
||||
{
|
||||
return my(event::id(at<"event_id"_>(event)));
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::my(const id::event &event_id)
|
||||
{
|
||||
return self::host(event_id.host());
|
||||
}
|
||||
|
||||
//
|
||||
// event
|
||||
//
|
||||
|
@ -482,3 +494,10 @@ ircd::m::event::fetch::fetch(const event::id &event_id,
|
|||
if(row.valid(event_id))
|
||||
assign(*this, row, event_id);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::event::fetch::valid(const event::id &event_id)
|
||||
const
|
||||
{
|
||||
return row.valid(event_id);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue