I asked a question on stackoverflow and received 2 answers. One of the answers provided was not applicable to the situation, and the other one was a good answer.
The poster who provided me a good answer made a comment in his answer saying that the code he posted was just the bare essentials as the rest of the code had come from a proprietary solution that he did not have permission to post the entirety of.
After he made that comment about his answer, some overly zealous community member jumped on his back saying that he shouldn't have posted proprietary code in the first place. The code sample in question had been generalized and contained a few lines of code that can be found all over the internet.
None the less the answer was removed. I had already seen it, and had done further research regarding this specific answer, and ultimately used a part of it to solve my problem.
I wanted to come back to the question and thank the guy, but then I discovered his answer was gone, so now I don't know how to mark my question answered.
What should I do? I would like to give credit where credit was due, or at least send a thank you to the guy. Also is there a way to find out who removed his answer? If it was done by the author then so be it, I can respect that totally. But I have a feeling this was a community moderation decision, and a bad one.