It is recommended if you have a similar answer to two dissimilar questions, that you tailor it for each question. In this case. I gave two different answers (1, 2 & 3) to two different questions, which were only similar in the fact that I reused the same sample code (and same first phrase) which was valid for both questions. However, I added multiple other comments related with each answer.
I believe these answers were deleted in error. Especially since the first one received very good reviews:
So… What is the correct way to report this problem?
There was a third (also tailored) answer with the same sample code. However, since I updated the code recently and missed one of them and the fact that there were three and not two in which I reused the same sample code.
So the claim becomes that even if it was to be considered that the other questions was similar enough to be removed, it still not nice to remove the one with many comments and upvotes and leave the nearly unseen one.