diff --git a/pygccxml/declarations/scopedef.py b/pygccxml/declarations/scopedef.py
index <HASH>..<HASH> 100644
--- a/pygccxml/declarations/scopedef.py
+++ b/pygccxml/declarations/scopedef.py
@@ -246,7 +246,6 @@ class scopedef_t(declaration.declaration_t):
         """implementation details"""
         types = []
         bases = list(decl.__class__.__bases__)
-        visited = set()
         if 'pygccxml' in decl.__class__.__module__:
             types.append(decl.__class__)
         while bases:
@@ -257,8 +256,6 @@ class scopedef_t(declaration.declaration_t):
                 continue
             if base is elaborated_info.elaborated_info:
                 continue
-            if base in visited:
-                continue
             if 'pygccxml' not in base.__module__:
                 continue
             types.append(base)
Remove unused code path

The set is never updated, so that the continue can never be called
in the loop. There seem to be no purpose for this code path, it
is probably some legacy code that did not get cleaned up.