diff --git a/include/ircd/m/fetch.h b/include/ircd/m/fetch.h index be5211af3..c8e167519 100644 --- a/include/ircd/m/fetch.h +++ b/include/ircd/m/fetch.h @@ -28,7 +28,6 @@ namespace ircd::m::fetch bool cancel(request &); bool start(const m::room::id &, const m::event::id &); bool prefetch(const m::room::id &, const m::event::id &); - bool synchronize(const m::room &); // Composed operations void auth_chain(const room &, const net::hostport &); diff --git a/ircd/m.cc b/ircd/m.cc index 043fc2886..9fa03820f 100644 --- a/ircd/m.cc +++ b/ircd/m.cc @@ -534,19 +534,6 @@ ircd::m::fetch::auth_chain(const room &r, call(r, hp); } -bool -ircd::m::fetch::synchronize(const m::room &room) -{ - using prototype = bool (const m::room &); - - static mods::import call - { - "m_fetch", "ircd::m::fetch::synchronize" - }; - - return call(room); -} - bool ircd::m::fetch::prefetch(const m::room::id &room_id, const m::event::id &event_id) diff --git a/modules/console.cc b/modules/console.cc index 8cd9f59ac..b5c5b4e32 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -13388,39 +13388,6 @@ console_cmd__fetch(opt &out, const string_view &line) return true; } -bool -console_cmd__fetch__sync(opt &out, const string_view &line) -{ - const params param{line, " ", - { - "room_id", "event_id" - }}; - - const auto room_id - { - m::room_id(param.at("room_id")) - }; - - const string_view &event_id - { - param["event_id"] - }; - - const m::room room - { - room_id, event_id - }; - - if(!m::fetch::synchronize(room)) - { - out << "failed to start." << std::endl; - return true; - } - - out << "done." << std::endl; - return true; -} - // // synchron // diff --git a/modules/m_fetch.cc b/modules/m_fetch.cc index 64afbd960..4920d8251 100644 --- a/modules/m_fetch.cc +++ b/modules/m_fetch.cc @@ -346,20 +346,6 @@ namespace ircd::m::fetch static void handle_state_ids(const m::room &, const m::feds::result &); } -bool -IRCD_MODULE_EXPORT -ircd::m::fetch::synchronize(const m::room &room) -{ - m::feds::opts opts; - opts.op = m::feds::op::head; - opts.room_id = room.room_id; - opts.event_id = room.event_id; - opts.nothrow_closure = true; - opts.closure_errors = false; - - return true; -} - void IRCD_MODULE_EXPORT ircd::m::fetch::state_ids(const room &room)