Recently I came across this [question][1] where the user posted an answer and then, upon clarification from OP, revised his answer and code. The user then kept the old code in the answer but put the `<strike>` html tag to strike-through the old code. 

Is this a good practice or should old code be removed when replacing it with updated code?

[Edit History of Answer][2]


  [1]: http://stackoverflow.com/questions/26221337/positioning-an-image-inside-a-link
  [2]: http://stackoverflow.com/posts/26221465/revisions