diff --git a/include/ircd/m/event/fetch.h b/include/ircd/m/event/fetch.h index fda57ed7e..7c08fab66 100644 --- a/include/ircd/m/event/fetch.h +++ b/include/ircd/m/event/fetch.h @@ -114,11 +114,6 @@ struct ircd::m::event::fetch::opts /// json query anyway. bool query_json_force {false}; - /// Whether to enforce the keys populated with values are tight to those - /// keys specified here. This is naturally true for row queries anyway, - /// but json queries may have more data than is being sought. - bool selected_only {true}; - opts(const event::keys &, const db::gopts & = {}); opts(const db::gopts &, const event::keys & = {}); opts() = default; diff --git a/ircd/m/event.cc b/ircd/m/event.cc index 9d74c6734..7e6892a51 100644 --- a/ircd/m/event.cc +++ b/ircd/m/event.cc @@ -1674,11 +1674,12 @@ ircd::m::event::fetch::assign_from_json(const opts &opts) _json.val() }; - assert(!empty(source)); - event = opts.selected_only? - m::event{source, opts.keys}: - m::event{source}; + event = + { + source, opts.keys + }; + assert(!empty(source)); assert(data(event.source) == data(source)); return true; }