Removes unused err variables