More literal definition: I have no thanks for you because you aren't doing what I want or did something I didn't want.
*toothless, the dragon, flies wildly, terrifying the girl Hiccup's with*
"Thanks for nothing you useless reptile" (How to Train Your Dragon)
"You were supposed to bring hotdog buns! Thanks for nothing."