[applied] ir: Remove redundant virtual member functions

Message ID 87fs2goyz4.fsf@redhat.com
State New
Headers
Series [applied] ir: Remove redundant virtual member functions |

Commit Message

Dodji Seketeli Oct. 12, 2023, 11:35 a.m. UTC
  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(-)
  

Patch

diff --git a/include/abg-ir.h b/include/abg-ir.h
index 18e95afd..5a9aed9a 100644
--- a/include/abg-ir.h
+++ b/include/abg-ir.h
@@ -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);