0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd:Ⓜ️:device: Remove remaining access_token_to_id interface related.

This commit is contained in:
Jason Volk 2020-04-01 17:35:10 -07:00
parent 08525e95d0
commit 6c0e6d49fb
2 changed files with 1 additions and 18 deletions

View file

@ -122,10 +122,6 @@ struct ircd::m::device
using closure = std::function<void (const string_view &)>;
using closure_bool = std::function<bool (const string_view &)>;
// 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);
}

View file

@ -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.