@@ -816,44 +816,6 @@ test_s_code(PyObject *self, PyObject *Py_UNUSED(ignored))
816
816
Py_RETURN_NONE ;
817
817
}
818
818
819
- #undef PyArg_ParseTupleAndKeywords
820
- PyAPI_FUNC (int ) PyArg_ParseTupleAndKeywords (PyObject * , PyObject * ,
821
- const char * , char * * , ...);
822
-
823
- static PyObject *
824
- getargs_s_hash_int (PyObject * self , PyObject * args , PyObject * kwargs )
825
- {
826
- static char * keywords [] = {"" , "" , "x" , NULL };
827
- Py_buffer buf = {NULL };
828
- const char * s ;
829
- int len ;
830
- int i = 0 ;
831
- if (!PyArg_ParseTupleAndKeywords (args , kwargs , "w*|s#i" , keywords ,
832
- & buf , & s , & len , & i ))
833
- {
834
- return NULL ;
835
- }
836
- PyBuffer_Release (& buf );
837
- Py_RETURN_NONE ;
838
- }
839
-
840
- static PyObject *
841
- getargs_s_hash_int2 (PyObject * self , PyObject * args , PyObject * kwargs )
842
- {
843
- static char * keywords [] = {"" , "" , "x" , NULL };
844
- Py_buffer buf = {NULL };
845
- const char * s ;
846
- int len ;
847
- int i = 0 ;
848
- if (!PyArg_ParseTupleAndKeywords (args , kwargs , "w*|(s#)i" , keywords ,
849
- & buf , & s , & len , & i ))
850
- {
851
- return NULL ;
852
- }
853
- PyBuffer_Release (& buf );
854
- Py_RETURN_NONE ;
855
- }
856
-
857
819
static PyObject *
858
820
gh_99240_clear_args (PyObject * self , PyObject * args )
859
821
{
@@ -906,8 +868,6 @@ static PyMethodDef test_methods[] = {
906
868
{"getargs_positional_only_and_keywords" , _PyCFunction_CAST (getargs_positional_only_and_keywords ), METH_VARARGS |METH_KEYWORDS },
907
869
{"getargs_s" , getargs_s , METH_VARARGS },
908
870
{"getargs_s_hash" , getargs_s_hash , METH_VARARGS },
909
- {"getargs_s_hash_int" , _PyCFunction_CAST (getargs_s_hash_int ), METH_VARARGS |METH_KEYWORDS },
910
- {"getargs_s_hash_int2" , _PyCFunction_CAST (getargs_s_hash_int2 ), METH_VARARGS |METH_KEYWORDS },
911
871
{"getargs_s_star" , getargs_s_star , METH_VARARGS },
912
872
{"getargs_tuple" , getargs_tuple , METH_VARARGS },
913
873
{"getargs_u" , getargs_u , METH_VARARGS },
0 commit comments