mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️:vm::eval: Remove the size-one array branch.
This commit is contained in:
parent
88bd487d5d
commit
628766f6fa
1 changed files with 0 additions and 6 deletions
|
@ -1548,12 +1548,6 @@ ircd::m::vm::eval::eval(const json::array &pdus,
|
|||
const vm::opts &opts)
|
||||
:opts{&opts}
|
||||
{
|
||||
if(pdus.size() == 1)
|
||||
{
|
||||
operator()(m::event(pdus.at(0)));
|
||||
return;
|
||||
}
|
||||
|
||||
// Sort the events first to avoid complicating the evals; the events might
|
||||
// be from different rooms but it doesn't matter.
|
||||
std::vector<m::event> events(begin(pdus), end(pdus));
|
||||
|
|
Loading…
Reference in a new issue