Yeah, I did that, and you sure do lose weight that way. But after a while you REALLY start wanting to eat some carbs.
I don't know about you, but for me, anything which requires extreme self-control, 24/7, eventually fails.
If it's just a matter of changing habits, yeah that is hard, but it works. It takes a lot of self-control to change a habit, but once you have established a new habit pattern, you do it automatically.
Even if its not a matter of habit--like you avoid cheating on your wife by just not hanging out with beautiful women--that works too. It takes self-control, but not continuous self-control.
But continuously, actively, fighting against one of your strongest urges takes energy and depletes your willpower. I've been able to do it for 3-6 months, but after that I just cave.