From cc8ef142b9e0d2bfb419dc8d2f238e22aa6db7bb 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 ----- deps/nostalgia/src/olympic/turbine/src/glfw/clipboard.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/deps/nostalgia/src/olympic/turbine/include/turbine/clipboard.hpp b/deps/nostalgia/src/olympic/turbine/include/turbine/clipboard.hpp index 1fd747a..83de726 100644 --- a/deps/nostalgia/src/olympic/turbine/include/turbine/clipboard.hpp +++ b/deps/nostalgia/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/deps/nostalgia/src/olympic/turbine/src/glfw/clipboard.cpp b/deps/nostalgia/src/olympic/turbine/src/glfw/clipboard.cpp index 855c451..2fd824b 100644 --- a/deps/nostalgia/src/olympic/turbine/src/glfw/clipboard.cpp +++ b/deps/nostalgia/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);