def prune(self):
self.boundprocs = [ obj for obj in self.boundprocs if obj.permission in self.display ]<EOL>self.variables = [ obj for obj in self.variables if obj.permission in self.display ]<EOL>for obj in self.boundprocs + self.variables:<EOL><INDENT>obj.visible = True<EOL><DEDENT>
Remove anything which shouldn't be displayed.