summaryrefslogtreecommitdiffhomepage
path: root/src/wall-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-11 06:23:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-11 06:23:21 +0100
commit18e85caba16438e1b5b44d86fd31021b336be73f (patch)
tree42bf28053f8aaa985f14734b4ea83173caf2b737 /src/wall-atlas.cpp
parenta8e63822eee34fdf409e09cdd591ffd987f6239b (diff)
c
Diffstat (limited to 'src/wall-atlas.cpp')
-rw-r--r--src/wall-atlas.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp
index 2a3cc07b..e905eab2 100644
--- a/src/wall-atlas.cpp
+++ b/src/wall-atlas.cpp
@@ -226,27 +226,6 @@ bool Frame::operator==(const Frame&) const noexcept = default;
bool Direction::operator==(const Direction&) const noexcept = default;
bool Info::operator==(const Info&) const noexcept = default;
bool DirArrayIndex::operator==(const DirArrayIndex&) const noexcept = default;
-
-#if 1
bool Group::operator==(const Group&) const noexcept = default;
-#else
-bool Group::operator==(const Group& other) const noexcept
-{
- bool ret = index == other.index && count == other.count &&
- pixel_size == other.pixel_size &&
- mirrored == other.mirrored && default_tint == other.default_tint;
-
- if (!ret)
- return ret;
-
- constexpr auto eps = 1e-5f;
- if (auto diff = Math::abs(Vector4(tint_mult) - Vector4(other.tint_mult)).sum(); diff > eps)
- return false;
- if (auto diff = Math::abs(Vector3(tint_add) - Vector3(other.tint_add)).sum(); diff > eps)
- return false;
-
- return true;
-}
-#endif
} // namespace floormat::Wall