Odd. But I have found that if you say “no” firmly and often enough, kids tend to stop asking for ice cream.
Worked for my kids. Also, i wouldn’t allow whining. So, my kids didn’t whine. not any of them... never...