* typeck.c (more_qualified_p): Remove.
* cp-tree.h: Remove the corresponding prototype.
From-SVN: r93949
+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
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);
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. */