diff --git a/include/ircd/m/device.h b/include/ircd/m/device.h index 6f923cccd..12e401d40 100644 --- a/include/ircd/m/device.h +++ b/include/ircd/m/device.h @@ -122,10 +122,6 @@ struct ircd::m::device using closure = std::function; using closure_bool = std::function; - // util - static id::buf access_token_to_id(std::nothrow_t, const string_view &token); - static id::buf access_token_to_id(const string_view &token); - // primary interface static bool for_each(const user &, const closure_bool &); // each device_id static bool for_each(const user &, const string_view &id, const closure_bool &); // each property @@ -145,16 +141,3 @@ struct ircd::m::device using super_type::tuple; using super_type::operator=; }; - -inline ircd::m::device::id::buf -ircd::m::device::access_token_to_id(const string_view &token) -{ - return m::user::tokens::device(token); -} - -inline ircd::m::device::id::buf -ircd::m::device::access_token_to_id(std::nothrow_t, - const string_view &token) -{ - return m::user::tokens::device(std::nothrow, token); -} diff --git a/modules/client/sync.cc b/modules/client/sync.cc index 1eaa01137..f7888a6f7 100644 --- a/modules/client/sync.cc +++ b/modules/client/sync.cc @@ -220,7 +220,7 @@ ircd::m::sync::handle_get(client &client, // the stack here for this sync. const device::id::buf device_id { - device::access_token_to_id(request.access_token) + m::user::tokens::device(request.access_token) }; // Keep state for statistics of this sync here on the stack.