removed external stuff from tarray.h

This commit is contained in:
Christoph Oelckers 2024-01-09 16:47:24 +01:00
parent 0838433d1f
commit 963209e8af
2 changed files with 1 additions and 13 deletions

View file

@ -2,6 +2,7 @@
#define TEXTUREID_H
#include <cstddef>
#include "tarray.h"
enum class ETextureType : uint8_t
{
@ -67,7 +68,6 @@ public:
constexpr FSetTextureID(int v) : FTextureID(v) {}
};
#ifdef TARRAY_H
template<> struct THashTraits<FTextureID>
{
@ -76,4 +76,3 @@ template<> struct THashTraits<FTextureID>
// Compares two keys, returning zero if they are the same.
int Compare(const FTextureID left, const FTextureID right) { return left != right; }
};
#endif

View file

@ -944,17 +944,6 @@ template<class KT> struct THashTraits
int Compare(const KT left, const KT right) { return left != right; }
};
#ifdef TEXTUREID_H
template<> struct THashTraits<FTextureID>
{
hash_t Hash(const FTextureID key) { return (hash_t)key.GetIndex(); }
// Compares two keys, returning zero if they are the same.
int Compare(const FTextureID left, const FTextureID right) { return left != right; }
};
#endif
template<> struct THashTraits<float>
{
// Use all bits when hashing singles instead of converting them to ints.