diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-18 09:26:42 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-18 09:26:42 +0000 |
commit | 06e838171ba701263d163494e2314cc2b4c47028 (patch) | |
tree | 54587e806a395ae3b56cf39fcf353a1be9484076 | |
parent | ea723b38845add64097449ec7a90ac4bb71fe2e3 (diff) | |
download | gcc-06e838171ba701263d163494e2314cc2b4c47028.tar.gz |
(strictly_overrides): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58284 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/cp/class.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 0434337ea6b..8be9caacf96 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -115,7 +115,6 @@ static void delete_duplicate_fields PARAMS ((tree)); static void finish_struct_bits PARAMS ((tree)); static int alter_access PARAMS ((tree, tree, tree)); static void handle_using_decl PARAMS ((tree, tree)); -static int strictly_overrides PARAMS ((tree, tree)); static void check_for_override PARAMS ((tree, tree)); static tree dfs_modify_vtables PARAMS ((tree, void *)); static tree modify_all_vtables PARAMS ((tree, int *, tree)); @@ -2590,24 +2589,6 @@ modify_all_vtables (t, vfuns_p, virtuals) return virtuals; } -/* Here, we already know that they match in every respect. - All we have to check is where they had their declarations. - - Return nonzero iff FNDECL1 is declared in a class which has a - proper base class containing FNDECL2. We don't care about - ambiguity or accessibility. */ - -static int -strictly_overrides (fndecl1, fndecl2) - tree fndecl1, fndecl2; -{ - base_kind kind; - - return (lookup_base (DECL_CONTEXT (fndecl1), DECL_CONTEXT (fndecl2), - ba_ignore | ba_quiet, &kind) - && kind != bk_same_type); -} - /* Get the base virtual function declarations in T that have the indicated NAME. */ |