[applied] ir: Remove redundant virtual member functions
Commit Message
Hello,
G++ 13.2.1 complains that virtual member functions
{qualified_type_def,pointer_type_def,class_or_union}::operator!= are
redundant with type_base::operator!=, and rightfully so. This patch
removes those useless virtual member functions.
* include/abg-ir.h
({qualified_type_def,pointer_type_def,class_or_union}::operator!=):
Remove these redundant virtual data members.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to the master branch.
---
include/abg-ir.h | 20 --------------------
1 file changed, 20 deletions(-)
@@ -2252,11 +2252,6 @@ public:
virtual bool
operator==(const qualified_type_def&) const;
- virtual bool
- operator!=(const qualified_type_def& other) const {
- return !(*this == other);
- }
-
CV
get_cv_quals() const;
@@ -2359,11 +2354,6 @@ public:
bool
operator==(const pointer_type_def&) const;
- bool
- operator!=(const pointer_type_def& other) const {
- return !(*this == other);
- }
-
const type_base_sptr
get_pointed_to_type() const;
@@ -2428,11 +2418,6 @@ public:
bool
operator==(const reference_type_def&) const;
- bool
- operator!=(const reference_type_def& other) const {
- return !(*this == other);
- }
-
type_base_sptr
get_pointed_to_type() const;
@@ -4114,11 +4099,6 @@ public:
virtual bool
operator==(const class_or_union&) const;
- virtual bool
- operator !=(const class_or_union& other) const {
- return !(*this == other);
- }
-
virtual bool
traverse(ir_node_visitor& v);