Removing debug statements from template class