Skip to content

Commit

Permalink
C4HudBarDef: Remove unnecessary operator== implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Sep 25, 2024
1 parent 3c7bd67 commit 11e1529
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions src/C4HudBars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,21 +175,6 @@ C4HudBarDef::C4HudBarDef(const std::string_view name, const std::string_view gfx
gfx{gfx}, facet{std::move(facet)}, index{index}
{}

bool C4HudBarDef::operator==(const C4HudBarDef &rhs) const noexcept
{
return
name == rhs.name &&
physical == rhs.physical &&
hide == rhs.hide &&
gfx == rhs.gfx &&
facet == rhs.facet &&
index == rhs.index &&
advance == rhs.advance &&
value == rhs.value &&
max == rhs.max &&
visible == rhs.visible;
}

C4HudBarDef::Hide C4HudBarDef::DefaultHide(const C4HudBarDef::Physical physical) noexcept
{
switch (physical)
Expand Down
2 changes: 1 addition & 1 deletion src/C4HudBars.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class C4HudBarDef
C4HudBarDef() noexcept = default;
C4HudBarDef(std::string_view name, std::string_view file, std::shared_ptr<C4FacetExID> gfx, std::uint32_t index, Physical physical = Physical::None);

bool operator==(const C4HudBarDef &rhs) const noexcept;
constexpr bool operator==(const C4HudBarDef &rhs) const noexcept = default;

static Hide DefaultHide(Physical physical) noexcept;
static std::int32_t DefaultIndex(Physical physical) noexcept;
Expand Down

0 comments on commit 11e1529

Please sign in to comment.