Skip to content

Commit 9c2910f

Browse files
committed
cleaning up: remove no longer needed functions
1 parent 71edcca commit 9c2910f

File tree

2 files changed

+15
-22
lines changed

2 files changed

+15
-22
lines changed

pandas/_libs/hashtable_class_helper.pxi.in

-7
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ cdef kh{{name}}_t to_kh{{name}}_t({{name}}_t val) nogil:
1919
res.imag = val.imag
2020
return res
2121

22-
23-
cdef {{name}}_t to_{{name}}(kh{{name}}_t val) nogil:
24-
cdef {{name}}_t res
25-
res.real = val.real
26-
res.imag = val.imag
27-
return res
28-
2922
{{endfor}}
3023

3124

pandas/_libs/hashtable_func_helper.pxi.in

+15-15
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in
66

77
{{py:
88

9-
# dtype, ttype, c_type, to_c_type, to_dtype
9+
# dtype, ttype, c_type, to_c_type
1010
dtypes = [('complex128', 'complex128', 'khcomplex128_t',
11-
'to_khcomplex128_t', 'to_complex128'),
11+
'to_khcomplex128_t'),
1212
('complex64', 'complex64', 'khcomplex64_t',
13-
'to_khcomplex64_t', 'to_complex64'),
14-
('float64', 'float64', 'float64_t', '', ''),
15-
('float32', 'float32', 'float32_t', '', ''),
16-
('uint64', 'uint64', 'uint64_t', '', ''),
17-
('uint32', 'uint32', 'uint32_t', '', ''),
18-
('uint16', 'uint16', 'uint16_t', '', ''),
19-
('uint8', 'uint8', 'uint8_t', '', ''),
20-
('object', 'pymap', 'object', '', ''),
21-
('int64', 'int64', 'int64_t', '', ''),
22-
('int32', 'int32', 'int32_t', '', ''),
23-
('int16', 'int16', 'int16_t', '', ''),
24-
('int8', 'int8', 'int8_t', '', '')]
13+
'to_khcomplex64_t'),
14+
('float64', 'float64', 'float64_t', ''),
15+
('float32', 'float32', 'float32_t', ''),
16+
('uint64', 'uint64', 'uint64_t', ''),
17+
('uint32', 'uint32', 'uint32_t', ''),
18+
('uint16', 'uint16', 'uint16_t', ''),
19+
('uint8', 'uint8', 'uint8_t', ''),
20+
('object', 'pymap', 'object', ''),
21+
('int64', 'int64', 'int64_t', ''),
22+
('int32', 'int32', 'int32_t', ''),
23+
('int16', 'int16', 'int16_t', ''),
24+
('int8', 'int8', 'int8_t', '')]
2525

2626
}}
2727

28-
{{for dtype, ttype, c_type, to_c_type, to_dtype in dtypes}}
28+
{{for dtype, ttype, c_type, to_c_type in dtypes}}
2929

3030

3131
@cython.wraparound(False)

0 commit comments

Comments
 (0)