@Edent
I tend to leave the attribution in regardless of how much had changed. Even if theres hardly anything left of the original, to me it's not the code as much as it is the code plus (ideas, inspiration, comments, links to others, etc.). So the attribution is not so much to thank for the code, but to direct others to a helpful or inspiring person.