From 2579313bad77fa3b66cb7525e5855bf3d6ab1a33 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 3 Sep 2019 11:08:54 -0700 Subject: [PATCH] modules/console: Remove cruft. --- modules/console.cc | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index 44ee31738..ef052d724 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -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 acquire - { - "vm_fetch", "state_fetch" - }; - - acquire(room_id, event_id, hostport); - return true; -} - bool console_cmd__event__visible(opt &out, const string_view &line) {