[turbine] Remove ClipboardObject::typeMatches

This commit is contained in:
Gary Talent 2024-05-28 23:41:21 -05:00
parent 667dd21a05
commit a8bb99b620
2 changed files with 1 additions and 6 deletions

View File

@ -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<typename T>

View File

@ -27,7 +27,7 @@ void setClipboardObject(Context &ctx, ox::UPtr<BaseClipboardObject> &&obj) noexc
}
ox::Result<BaseClipboardObject*> 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);