I declined your flag.
A No Longer Needed (NLN) flag should be used when there is no longer a use for the comment and it can be immediately deleted. That was not the case here. The code from the comment had been copied into the answer (with the deletion of one character and added formatting), but attribution to the original author had not been provided in the answer, or even the edit summary. The CC BY-SA license under which all user content is contributed to Stack Exchange requires attribution when copying the content, even when that content is in a comment.
If the comment had been immediately deleted, which is what you were requesting with an NLN flag, then there would have been no indication at all as to where the code came from. Thus, the comment was still needed. Because the comment was still required, I declined your flag.
If you wanted the comment deleted (i.e. the NLN flag to be helpful), then you needed to have eliminated all need for the comment, including the need for the comment to remain in order to indicate the source of the code. In other words, you should have edited the answer to include attribution for the copied content. If you had done that prior to flagging as NLN, then I would have just deleted the comment, marking your flag as helpful. Editing the post to include attribution is something which any user, particularly a user with full editing privileges, could, and should, do. Editing in that attribution is not a function which requires a moderator, nor is it something which is a normal part of a moderator handling an NLN flag (i.e. an NLN flag means "this comment can be immediately deleted").
Given that I was already viewing the answer and attribution was needed, I edited the answer to add attribution. Once attribution was added, the comment was no longer needed, so I deleted the comment.
Unfortunately, comment flags can only be declined or marked helpful. There is no ability for moderators to dispute them, nor to provide explanatory text when declining them or marking them helpful. Moderators cannot mark a comment flag as helpful without deleting or editing the comment. So, unfortunately, there was no way to give you an explanation along with disposing of the flag.
[Note: Yes, the person who originally copied the code from the comment into the answer should have provided attribution. Unfortunately, they did not provide attribution in either the answer or edit summary. However, the fact that they should have done so doesn't change the state of the answer and comment at the time you raised the NLN flag.]