From 9f09eb65813d5e604ddf7f618af1f4e938dd2516 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 5 Aug 2020 17:26:41 -0700 Subject: [PATCH] ircd::json::value: Inline trivial indirections. --- include/ircd/json/value.h | 12 ++++++++++++ ircd/json.cc | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/ircd/json/value.h b/include/ircd/json/value.h index c9032a4c2..b2a2a9d3f 100644 --- a/include/ircd/json/value.h +++ b/include/ircd/json/value.h @@ -348,3 +348,15 @@ ircd::json::operator!=(const value &a, const value &b) { return !operator==(a, b); } + +inline bool +ircd::json::defined(const value &a) +{ + return !a.undefined(); +} + +inline enum ircd::json::type +ircd::json::type(const value &a) +{ + return static_cast(a.type); +} diff --git a/ircd/json.cc b/ircd/json.cc index 764029dc9..c08e809f2 100644 --- a/ircd/json.cc +++ b/ircd/json.cc @@ -4081,18 +4081,6 @@ ircd::json::serialized(const bool &b) return b? t : f; } -bool -ircd::json::defined(const value &a) -{ - return !a.undefined(); -} - -enum ircd::json::type -ircd::json::type(const value &a) -{ - return static_cast(a.type); -} - // // value::value //