mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-16 05:02:53 +00:00
refactor: remove unneeded TlsKey typedefs
This commit is contained in:
parent
28816876a1
commit
e5414bf871
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue