Usually i've written the entire source base so not a problem there
As I said, I don't recycle code from one client to another. Always write from scratch. It's not morals that make me do that, it's just that the variety of work I do is such that it makes better sense.
However there are techniques which I want to keep hold of. It's simpler to just copy everything than to selectively pick and choose.
There is also the possibility that the old client might contact me with a query. If I have the source code with me I can quickly refer back to it and give them an answer.