]> gcc.gnu.org Git - gcc.git/commitdiff
typeck.c (more_qualified_p): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 20 Jan 2005 07:12:50 +0000 (07:12 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 20 Jan 2005 07:12:50 +0000 (07:12 +0000)
* typeck.c (more_qualified_p): Remove.
* cp-tree.h: Remove the corresponding prototype.

From-SVN: r93949

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/typeck.c

index d593003e86dc8dbfae7ea5ec4d09cc685ef50510..4ac203523eec7e210d1a93fa3be0089d553316bf 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * typeck.c (more_qualified_p): Remove.
+       * cp-tree.h: Remove the corresponding prototype.
+
 2005-01-19  Matt Austern  <austern@apple.com>
 
        * typeck.c (comptypes): Handle return code from objc_comptypes
index 27ae2e8dfdd6798e03d665d25b51e1833ee88dab..0594dbe5cd941a277c1427de770096ee5b21fd22 100644 (file)
@@ -4306,7 +4306,6 @@ extern tree build_ptrmemfunc                      (tree, tree, int, bool);
 extern int cp_type_quals                        (tree);
 extern bool cp_has_mutable_p                     (tree);
 extern bool at_least_as_qualified_p              (tree, tree);
-extern bool more_qualified_p                     (tree, tree);
 extern tree build_ptrmemfunc1                   (tree, tree, tree);
 extern void expand_ptrmemfunc_cst               (tree, tree *, tree *);
 extern tree pfn_from_ptrmemfunc                 (tree);
index 70dae4b0ed445f517c8f37386f74afb96d5ad09c..0485d65e17f2e8812a685e1fcec3bd4135558d80 100644 (file)
@@ -1089,17 +1089,6 @@ at_least_as_qualified_p (tree type1, tree type2)
   return (q1 & q2) == q2;
 }
 
-/* Returns 1 if TYPE1 is more qualified than TYPE2.  */
-
-bool
-more_qualified_p (tree type1, tree type2)
-{
-  int q1 = cp_type_quals (type1);
-  int q2 = cp_type_quals (type2);
-
-  return q1 != q2 && (q1 & q2) == q2;
-}
-
 /* Returns 1 if TYPE1 is more cv-qualified than TYPE2, -1 if TYPE2 is
    more cv-qualified that TYPE1, and 0 otherwise.  */
 
This page took 0.082847 seconds and 5 git commands to generate.