David McNally, a religious education supply teacher at Kilwinning Academy, North Ayrshire, was found unfit to teach after he admitted all seven charges against him.
Mr McNally made a string of offensive remarks to pupils at the school in November last year, including: “Hitler wasn’t all bad, he killed the Jews, the gays and disabled.”
He also asked pupils “Are you a jakey?” and “Did you have sex at the weekend?”
On another occasion, Mr McNally told S3 pupils: “I didn’t want to be a teacher. I would have rather been a prison warden or a child abuser.”
Mr McNally also said: “I have a part-time job at a children’s home, they taught me how to whip a child with a wet towel without leaving a mark.
And he boasted: “I love my mobile phone because I can sit and watch porn on it.”
Mr McNally also made inappropriate comments about Jimmy Savile, which were not detailed, while teaching an S3 class.
Paul Reid, case presenter for the GTCS, described the remarks as “offensive”, “inappropriate” and said they caused “distress” to both parents and pupils.
Mr McNally was not present or represented but sent a letter to the GTCS in which he admitted all the charges.
Mr Paul Reid told the hearing in Edinburgh: “Mr McNally has provided a response but has chosen not to engage in the process.
“The remarks were deeply offensive and inappropriate, and caused pupils and parents to make formal complaints.
“These comments were not said outside his workplace but were said in a classroom.
“In respect of the complaints these comments are clearly inappropriate.
“His conduct falls short of the expected standards of a teaching professional.
“He did admit these making these remarks, in his notice of defense he tries to dilute the effects of his remarks.
“In regards to the question of ‘did you have sex at the weekend’, Mr McNally claims it was a hypothetical statement in a discussion about abortion.
“I advise the panel to take a dim view of the man’s behaviour.
“In my opinion he is not fit to teach children - his comments have caused distress to parents and young people.”
Panel chairman Donald MacKay said: “Mr McNally has admitted the facts made against him. The panel has therefore found the facts proven.
“He has admitted that he is impaired and is unfit to teach. The panel has decided he is unfit to teach, and he will be removed from the register.
“He can appeal the decision if he chooses too.”