diff --git a/libs/dfi/gtest/src/dyn_type_tests.cpp b/libs/dfi/gtest/src/dyn_type_tests.cpp index dda8efd13..9cb23876a 100644 --- a/libs/dfi/gtest/src/dyn_type_tests.cpp +++ b/libs/dfi/gtest/src/dyn_type_tests.cpp @@ -326,13 +326,6 @@ TEST_F(DynTypeTests, NrOfEntriesTest) { dynType_destroy(type); } -TEST_F(DynTypeTests, ComplexHasDuplicateName) { - dyn_type *type = NULL; - auto rc = dynType_parseWithStr(R"({II a a})", nullptr, nullptr, &type); - ASSERT_EQ(3, rc); - celix_err_printErrors(stderr, nullptr, nullptr); -} - TEST_F(DynTypeTests, ComplexHasEmptyName) { dyn_type *type = NULL; auto rc = dynType_parseWithStr(R"({II a })", nullptr, nullptr, &type); diff --git a/libs/dfi/src/dyn_type.c b/libs/dfi/src/dyn_type.c index 6ed3bb4f1..df2021bfd 100644 --- a/libs/dfi/src/dyn_type.c +++ b/libs/dfi/src/dyn_type.c @@ -296,14 +296,6 @@ static int dynType_parseComplex(FILE *stream, dyn_type *type) { if (status == OK) { TAILQ_FOREACH(entry, &type->complex.entriesHead, entries) { count +=1; - struct complex_type_entry *entry2 = NULL; - for(entry2 = entry->entries.tqe_next; entry2 != NULL; entry2 = entry2->entries.tqe_next) { - if (entry2->name != NULL && entry->name != NULL && strcmp(entry2->name, entry->name) == 0) { - status = PARSE_ERROR; - LOG_ERROR("Error duplicate name '%s'", entry->name); - break; - } - } } }