Skip to content

Commit

Permalink
net/AddressInfo: remove unnecessary operator!=()
Browse files Browse the repository at this point in the history
The compiler must generate this implicitly from operator==().
  • Loading branch information
MaxKellermann committed Jul 23, 2024
1 parent 8050a03 commit ae69dd2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/net/AddressInfo.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ public:
return cursor == other.cursor;
}

constexpr bool operator!=(const_iterator other) const noexcept {
return cursor != other.cursor;
}

const_iterator &operator++() noexcept {
cursor = cursor->ai_next;
return *this;
Expand Down

0 comments on commit ae69dd2

Please sign in to comment.