Superheroes shouldn't kill.
The problem now is that writers have made villains more and more murderous over the years.
When the no-kill code was in full effect, the villains didn't generally have the body count they have nowadays.
The Joker for example now routinely embarks on mass murders, it doesn't make any sense anymore that no one will kill the guy to stop him.