def remove_component(self, name):
component_to_remove = None<EOL>for c in self.components:<EOL><INDENT>if c.name == name:<EOL><INDENT>component_to_remove = c<EOL><DEDENT><DEDENT>if component_to_remove is not None:<EOL><INDENT>self.components.remove(component_to_remove)<EOL><DEDENT>
Remove a sub component from the component.

:param name: The name of the component to remove.