code: def remove_declaration(self, decl):
          
  
          del self.declarations[self.declarations.index(decl)]
          decl.cache.reset()
docs: Removes declaration from members list.
  
          :param decl: declaration to be removed
          :type decl: :class:`declaration_t`