#NEWLINE# def remove_empty( self ) : #NEWLINE# #INDENT# ' Removes segments, routes ' #NEWLINE# routes = [ ] #NEWLINE# for route in self . routes : #NEWLINE# #INDENT# if ( len ( route . points ) > 0 ) : #NEWLINE# #INDENT# routes . append ( route ) #NEWLINE# #UNINDENT# #UNINDENT# self . routes = routes #NEWLINE# for track in track . tracks : #NEWLINE# #INDENT# track . remove_empty ( )