replace self.syntax with a SyntaxError exception
remove more dead code