Would you do the same for a friend? Me personally I think I would have just confronted such a friend and told them to seek help instead of me altering my lifestyle for his benefit. If they didn't seek help to the point that it was affecting me I would've just stopped hanging out with them silently I think. A friend would've had to be a real good one to make an exception at least.
I have never seen directly anyone who wants to stop gambling because of a friend, although maybe something like that has happened out there, but I have never seen it directly. I once saw a friend stop gambling because of his wife and children because of the demands placed on them so he decided to stop even though at first it seemed so difficult because of the addiction. Friends and family show greater encouragement to stop gambling because perhaps they understand our condition better.
Unfortunately not everyone can be aware of the encouragement of those closest to them and there are even people who have to separate from their families because of their gambling addiction. For me, it doesn't matter if someone is involved in gambling as long as they can handle the gambling responsibly, both regarding the finances they use to gamble and the specific time they spend playing.