From 31c220c7178f3a8ae7a803e46d3d568d7ff56848 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 24 Apr 2024 20:47:57 +0200 Subject: Reword custom formatter to be simpler --- deimos/core/status.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'deimos/core/status.h') diff --git a/deimos/core/status.h b/deimos/core/status.h index 7350cc5..6601ad7 100644 --- a/deimos/core/status.h +++ b/deimos/core/status.h @@ -83,12 +83,7 @@ public: return RepCode(); } - static void FormatStatus(IWriter* writer, const void* payload); - - friend constexpr deimos::FormatArg DeimosMakeFormatArg(const Status& status) - { - return deimos::FormatArg(status, FormatStatus); - } + friend void DeimosFormat(IWriter*, const Status&); }; inline Status UnknownError(StringView message = {}) -- cgit