mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
removed external stuff from tarray.h
This commit is contained in:
parent
0838433d1f
commit
963209e8af
2 changed files with 1 additions and 13 deletions
|
@ -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
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue