refactor: remove unneeded TlsKey typedefs

This commit is contained in:
Tropical 2026-03-25 15:55:37 -05:00
parent 28816876a1
commit e5414bf871
4 changed files with 0 additions and 25 deletions

View file

@ -4,12 +4,6 @@
class PistonBaseTile : public Tile {
public:
#if defined(_WIN32)
using TlsKey = std::uint32_t;
#else
using TlsKey = pthread_key_t;
#endif
static const int EXTENDED_BIT = 8;
static const int UNDEFINED_FACING = 7;

View file

@ -50,12 +50,6 @@ class Tile {
friend class WallTile;
protected:
#if defined(_WIN32)
using TlsKey = std::uint32_t;
#else
using TlsKey = pthread_key_t;
#endif
// 4J added so we can have separate shapes for different threads
class ThreadStorage {
public:

View file

@ -36,12 +36,6 @@ class Entity : public std::enable_shared_from_this<Entity> {
friend class Gui; // 4J Stu - Added to be able to access the shared flag
// functions and constants, without making them publicly
// available to everything
public:
#if defined(_WIN32)
using TlsKey = std::uint32_t;
#else
using TlsKey = pthread_key_t;
#endif
// 4J-PB - added to replace (e instanceof Type), avoiding dynamic casts
virtual eINSTANCEOF GetType() = 0;

View file

@ -9,13 +9,6 @@
class Level;
class OldChunkStorage : public ChunkStorage {
public:
#if defined(_WIN32)
using TlsKey = std::uint32_t;
#else
using TlsKey = pthread_key_t;
#endif
private:
// 4J added so we can have separate storage arrays for different threads
class ThreadStorage {