From a8bb99b6200e8977af8929fb8ce0122ffad10801 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 28 May 2024 23:41:21 -0500 Subject: [PATCH] [turbine] Remove ClipboardObject::typeMatches --- src/olympic/turbine/include/turbine/clipboard.hpp | 5 ----- src/olympic/turbine/src/glfw/clipboard.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/olympic/turbine/include/turbine/clipboard.hpp b/src/olympic/turbine/include/turbine/clipboard.hpp index 1fd747ac..83de7261 100644 --- a/src/olympic/turbine/include/turbine/clipboard.hpp +++ b/src/olympic/turbine/include/turbine/clipboard.hpp @@ -18,11 +18,6 @@ class BaseClipboardObject { [[nodiscard]] virtual ox::StringView typeId() const noexcept = 0; - - [[nodiscard]] - constexpr auto typeMatch(ox::StringView typeId) const noexcept { - return this->typeId() == typeId; - } }; template diff --git a/src/olympic/turbine/src/glfw/clipboard.cpp b/src/olympic/turbine/src/glfw/clipboard.cpp index 855c4512..2fd824bb 100644 --- a/src/olympic/turbine/src/glfw/clipboard.cpp +++ b/src/olympic/turbine/src/glfw/clipboard.cpp @@ -27,7 +27,7 @@ void setClipboardObject(Context &ctx, ox::UPtr &&obj) noexc } ox::Result getClipboardData(Context &ctx, ox::StringView typeId) noexcept { - if (ctx.clipboard && ctx.clipboard->typeMatch(typeId)) { + if (ctx.clipboard && ctx.clipboard->typeId() == typeId) { return ctx.clipboard.get(); } return OxError(1);