At least, in my case, the final latex source file is a mess of commented out sentences, obsolete to-do lists. Before submitting to the arxiv, we need to clean these things.
One cool tool that I came by to clean up the unnecessary plots, comments etc is here: