Before you check in, delete any code which is no longer used.

You can use the source repository history to see changes made in different versions of a file or to recover code.