From 877b57d026d0e1d990a33c42e944bc25df9bd10a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Jun 2024 13:19:22 +0200 Subject: src: remove point::hash() --- src/point.cpp | 8 -------- src/point.hpp | 1 - 2 files changed, 9 deletions(-) (limited to 'src') 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 std::tuple_element_t constexpr get() const; - size_t hash() const; friend Debug& operator<<(Debug& dbg, const point& pt); static constexpr uint32_t distance(point a, point b); -- cgit v1.2.3