diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-01-20 07:12:50 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-01-20 07:12:50 +0000 |
commit | 0177ca87603bd70407cf7f7bc8b8408fd0c921a0 (patch) | |
tree | 82d2c4aadfb0b76d16b83b90314557b198be9e65 /gcc | |
parent | f75959a6a36a08908bfb66af87f67b00e056a4c4 (diff) | |
download | gcc-0177ca87603bd70407cf7f7bc8b8408fd0c921a0.zip gcc-0177ca87603bd70407cf7f7bc8b8408fd0c921a0.tar.gz gcc-0177ca87603bd70407cf7f7bc8b8408fd0c921a0.tar.bz2 |
typeck.c (more_qualified_p): Remove.
* typeck.c (more_qualified_p): Remove.
* cp-tree.h: Remove the corresponding prototype.
From-SVN: r93949
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 d593003..4ac2035 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 27ae2e8..0594dbe5c 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 70dae4b..0485d65 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. */ |