@@ -6819,15 +6819,6 @@ sslmodule_init_constants(PyObject *m)
68196819}
68206820
68216821/* internal hashtable (errcode, libcode) => (reason [PyObject * (unicode)]) */
6822- static Py_uhash_t
6823- py_ht_errcode_to_name_hash (const void * key ) {
6824- return _Py_hashtable_hash_ptr (key );
6825- }
6826-
6827- static int
6828- py_ht_errcode_to_name_comp (const void * a , const void * b ) {
6829- return _Py_hashtable_hash_ptr (a ) == _Py_hashtable_hash_ptr (b );
6830- }
68316822
68326823static void
68336824py_ht_errcode_to_name_free (void * value ) {
@@ -6838,8 +6829,8 @@ py_ht_errcode_to_name_free(void *value) {
68386829static _Py_hashtable_t *
68396830py_ht_errcode_to_name_create (void ) {
68406831 _Py_hashtable_t * table = _Py_hashtable_new_full (
6841- py_ht_errcode_to_name_hash ,
6842- py_ht_errcode_to_name_comp ,
6832+ _Py_hashtable_hash_ptr ,
6833+ _Py_hashtable_compare_direct ,
68436834 NULL ,
68446835 py_ht_errcode_to_name_free ,
68456836 NULL
@@ -6868,15 +6859,6 @@ py_ht_errcode_to_name_create(void) {
68686859}
68696860
68706861/* internal hashtable (libcode) => (libname [PyObject * (unicode)]) */
6871- static Py_uhash_t
6872- py_ht_libcode_to_name_hash (const void * key ) {
6873- return (Py_uhash_t )((uintptr_t )key );
6874- }
6875-
6876- static int
6877- py_ht_libcode_to_name_comp (const void * a , const void * b ) {
6878- return (uintptr_t )a == (uintptr_t )b ;
6879- }
68806862
68816863static void
68826864py_ht_libcode_to_name_free (void * value ) {
@@ -6887,8 +6869,8 @@ py_ht_libcode_to_name_free(void *value) {
68876869static _Py_hashtable_t *
68886870py_ht_libcode_to_name_create (void ) {
68896871 _Py_hashtable_t * table = _Py_hashtable_new_full (
6890- py_ht_libcode_to_name_hash ,
6891- py_ht_libcode_to_name_comp ,
6872+ _Py_hashtable_hash_ptr ,
6873+ _Py_hashtable_compare_direct ,
68926874 NULL ,
68936875 py_ht_libcode_to_name_free ,
68946876 NULL
0 commit comments