The death penalty is not, and never has been, a deterrent. The anti crowd likes to claim that, because it's not a deterrent, it should be abolished.
The death penalty is, always has been, and always should be, the ultimate punishment for the most serious crimes.