diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 13:19:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 13:19:22 +0200 |
commit | 877b57d026d0e1d990a33c42e944bc25df9bd10a (patch) | |
tree | 4d9d650164417ea909e2e4d28fcc5efba3ce1cb5 | |
parent | 461481e6bb8149c07121eb85a984e6393fa2b80d (diff) |
src: remove point::hash()
-rw-r--r-- | src/point.cpp | 8 | ||||
-rw-r--r-- | src/point.hpp | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/point.cpp b/src/point.cpp index a8486fb7..a4d1074d 100644 --- a/src/point.cpp +++ b/src/point.cpp @@ -1,16 +1,8 @@ -#include "compat/hash.hpp" #include "point.inl" #include "tile-constants.hpp" namespace floormat { -size_t point::hash() const -{ - constexpr size_t size = 2 * 2 + 1 + 1 + 2; - static_assert(sizeof *this == size); - return hash_buf(this, sizeof *this); -} - Debug& operator<<(Debug& dbg, const point& pt) { dbg << ""; diff --git a/src/point.hpp b/src/point.hpp index 285d2f30..8d40992b 100644 --- a/src/point.hpp +++ b/src/point.hpp @@ -32,7 +32,6 @@ struct point constexpr Vector2b offset() const; template<size_t N> std::tuple_element_t<N, point> constexpr get() const; - size_t hash() const; friend Debug& operator<<(Debug& dbg, const point& pt); static constexpr uint32_t distance(point a, point b); |