Removes logging code that is no longer needed.