summaryrefslogtreecommitdiff
path: root/odb/lookup.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-19 13:49:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-19 13:49:43 +0200
commitab132de5f11e414974cdc0c4b8d85a19792b2e47 (patch)
tree8c442ba5b350c95c9be3880623dcaab58721d077 /odb/lookup.cxx
parent0603db21d2622588ab35389d3ddcaac7410c9f11 (diff)
Use common lookup function instead of duplicating code
Diffstat (limited to 'odb/lookup.cxx')
-rw-r--r--odb/lookup.cxx10
1 files changed, 0 insertions, 10 deletions
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;
}
}