diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 1 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 11 |
3 files changed, 5 insertions, 12 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d593003e86d..4ac203523ee 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 27ae2e8dfdd..0594dbe5cd9 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -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); diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 70dae4b0ed4..0485d65e17f 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -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. */ |