Removes unnecessary code.

Added by copy-paste.