The Nazis killed socialists, democratic socialists, and communists.
The Nazis rid the Party of its socialist wing in "The Night of the Long Knives" in 1934.
Or they were socialists who killed other socialists. Hitler's platform looked almost indistinguishable from FDR's with all its nanny state handouts and government-run everything.
