0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 12:18:54 +02:00

modules/console: Remove cruft.

This commit is contained in:
Jason Volk 2019-09-03 11:08:54 -07:00
parent 6e8a7a4162
commit 2579313bad

View file

@ -7131,42 +7131,6 @@ console_cmd__event__rewrite(opt &out, const string_view &line)
return true;
}
bool
console_cmd__event__fetch(opt &out, const string_view &line)
{
const params param{line, " ",
{
"room_id", "event_id"
}};
const m::event::id &event_id
{
param.at("event_id")
};
const auto &room_id
{
m::room_id(param.at("room_id"))
};
const net::hostport hostport
{
room_id.host()
};
using prototype = json::object (const m::room::id &,
const m::event::id &,
const net::hostport &);
static mods::import<prototype> acquire
{
"vm_fetch", "state_fetch"
};
acquire(room_id, event_id, hostport);
return true;
}
bool
console_cmd__event__visible(opt &out, const string_view &line)
{