From ab132de5f11e414974cdc0c4b8d85a19792b2e47 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 19 Sep 2011 13:49:43 +0200 Subject: Use common lookup function instead of duplicating code --- odb/lookup.cxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'odb/lookup.cxx') diff --git a/odb/lookup.cxx b/odb/lookup.cxx index 4f87203..cc02c66 100644 --- a/odb/lookup.cxx +++ b/odb/lookup.cxx @@ -114,16 +114,6 @@ namespace lookup tt = lex.next (t); } - // Get the actual type if this is a TYPE_DECL. - // - if (is_type) - { - if (TREE_CODE (scope) == TYPE_DECL) - scope = TREE_TYPE (scope); - - scope = TYPE_MAIN_VARIANT (scope); - } - return scope; } } -- cgit v1.1