Eventually moving the old code into a further removed #if 0 as the remaining bugs taper off (i.e. I'll just fix them instead of reverting back to the old code for a milestone) before deleting the old code outright.
Much like evicting data from L1, L2, L3, and finally main memory.
Sometimes I'll even write explicit comments to delete code by a certain date.
E.g. I might start a rewrite with:
Eventually moving the old code into a further removed #if 0 as the remaining bugs taper off (i.e. I'll just fix them instead of reverting back to the old code for a milestone) before deleting the old code outright.Much like evicting data from L1, L2, L3, and finally main memory.
Sometimes I'll even write explicit comments to delete code by a certain date.