forked from rosebudai/OpenRCT2-Web
Remove old HasFlag() function
This commit is contained in:
1 file changed
-7
@@ -30,10 +30,3 @@ constexpr auto EnumValue(TEnum enumerator) noexcept
|
||||
{
|
||||
return static_cast<std::underlying_type_t<TEnum>>(enumerator);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr bool HasFlag(uint64_t holder, T v)
|
||||
{
|
||||
static_assert(std::is_enum_v<T>);
|
||||
return (holder & EnumToFlag(v)) != 0;
|
||||
}
|
||||
Reference in new issue
Block a user