diff options
author | Andreas Fried <andreas.fried@kit.edu> | 2019-07-29 22:39:56 +0200 |
---|---|---|
committer | Andreas Fried <andreas.fried@kit.edu> | 2019-07-29 22:39:56 +0200 |
commit | b1485462789998e91258c8972de8ceda0cd63cd2 (patch) | |
tree | cd85b7c56ccecad9081f302df0a8761494fbc018 | |
parent | 55aa3c5c83aa573a87f4126da208d6a03126a69c (diff) |
Remove leftover static find_compound_entry.
-rw-r--r-- | src/parser/parser.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/parser/parser.c b/src/parser/parser.c index d0c2a03..5bcbe9c 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -1723,29 +1723,6 @@ static void ascend_to(type_path_t *path, size_t top_path_level) } } -static entity_t *find_compound_entry(compound_t *compound, symbol_t *symbol) -{ - for (entity_t *iter = compound->members.first_entity; iter != NULL; - iter = iter->base.next) { - if (iter->kind != ENTITY_COMPOUND_MEMBER) - continue; - - if (iter->base.symbol == symbol) { - return iter; - } else if (iter->base.symbol == NULL) { - /* search in anonymous structs and unions */ - type_t *type = skip_typeref(iter->declaration.type); - if (is_type_compound(type) - && find_compound_entry(type->compound.compound, symbol) != NULL) - return iter; - - continue; - } - } - - return NULL; -} - static bool walk_designator(type_path_t *path, const designator_t *designator, bool used_in_offsetof) { |