Find out why your code exists before changing it.
Recent revisions are kept. Restoring one creates a new revision.