diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wall-atlas.cpp | 21 |
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 |