Daniele Bartolini 10 лет назад
Родитель
Сommit
b30cb3312b
1 измененных файлов с 0 добавлено и 34 удалено
  1. 0 34
      src/core/types.h

+ 0 - 34
src/core/types.h

@@ -7,37 +7,3 @@
 
 
 #include <stddef.h> // NULL
 #include <stddef.h> // NULL
 #include <stdint.h>
 #include <stdint.h>
-
-namespace crown
-{
-
-#define INVALID_ID 65535
-
-struct Id
-{
-	uint16_t id;
-	uint16_t index;
-
-	void decode(uint32_t id_and_index)
-	{
-		id = (id_and_index & 0xffff0000) >> 16;
-		index = id_and_index & 0xffff;
-	}
-
-	uint32_t encode() const
-	{
-		return (uint32_t(id) << 16) | uint32_t(index);
-	}
-
-	bool operator==(const Id& other)
-	{
-		return id == other.id && index == other.index;
-	}
-
-	bool operator!=(const Id& other)
-	{
-		return id != other.id || index != other.index;
-	}
-};
-
-} // namespace crown