class library: patterns: remove unnecessary cleanup arguments
class library: patterns: minor optimization of cleanup