#NEWLINE# def remove_references( self , name ) : #NEWLINE# #INDENT# 'Remove references to component `name`.\n\n        name: string\n            Name of component being removed.\n        ' #NEWLINE# to_remove = [ ] #NEWLINE# for ( rname , response ) in self . _responses . items ( ) : #NEWLINE# #INDENT# if ( name in response . get_referenced_compnames ( ) ) : #NEWLINE# #INDENT# to_remove . append ( rname ) #NEWLINE# #UNINDENT# #UNINDENT# for rname in to_remove : #NEWLINE# #INDENT# self . remove_response ( rname )