I heard a woman say, "I'll stop smoking when God takes away the desire."
God can do that.
But He rarely does.
Most Christians must diligently submit their wills to God and repeatedly deny their temptations.
A friend told me he thought he'd never quit smoking. Then, one night when he was longing for a cigarette, he picked up his Bible and read 1 Corinthians 10:13:
"The temptations in your life are no different from what others experience. And God is faithful. He will not allow the temptation to be more than you can stand. When you are tempted, he will show you a way out so that you can endure." NLT
He realized others had quit and he could too. God wouldn't allow it to be too hard. He'd provide a way. That word from God gave him strength to deny himself.
The principles in 1 Corinthians 10:13 are important to remember whenever we face temptations.