<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_declaration(self, decl):
 """ Removes declaration from members list. :param decl: declaration to be removed :type decl: :class:`declaration_t` """


        del self.declarations[self.declarations.index(decl)]
        decl.cache.reset()