Michel Foucault said this quote
“ The public execution did not re-establish justice; it reactivated power. In the seventeenth century, and even in the early eighteenth century, it was not, therefore, with all its theatre of terror, a lingering hang-over from an earlier age. Its ruthlessness, its spectacle, its physical violence, its unbalanced play of forces, its meticulous ceremonial, its entire apparatus were inscribed in the political functioning of the penal system. ”