I wouldn’t suggest doing that to any dog, but you’re right, it especially didn’t help in this particular case.
Why do people get a dog if it’s going to spend its life confined to the backyard?