From 4077307ab56ed29888a35caf4a9bab07e11e77ab Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 23 Sep 2017 00:28:34 -0700 Subject: [PATCH] ircd::db: Minor cleanup. --- ircd/db.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ircd/db.cc b/ircd/db.cc index c0b7303e9..f59bfc126 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -769,8 +769,7 @@ ircd::db::database::prefix_transform::Transform(const Slice &key) const { assert(bool(user.get)); - const string_view s{slice(key)}; - return slice(user.get(s)); + return slice(user.get(slice(key))); } bool @@ -785,8 +784,7 @@ ircd::db::database::prefix_transform::InDomain(const Slice &key) const { assert(bool(user.has)); - const string_view s{slice(key)}; - return user.has(s); + return user.has(slice(key)); } ///////////////////////////////////////////////////////////////////////////////