diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 0041363c46b..36bfc705050 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -3826,17 +3826,6 @@ def render(self, function, data): add_c_return_converter(CReturnConverter, 'object') -class NoneType_return_converter(CReturnConverter): - def render(self, function, data): - self.declare(data) - data.return_conversion.append(''' -if (_return_value != Py_None) { - goto exit; -} -return_value = Py_None; -Py_INCREF(Py_None); -'''.strip()) - class bool_return_converter(CReturnConverter): type = 'int'