Skip to content

Commit 625ec6b

Browse files
authored
CLN: clean lib util (pandas-dev#43508)
1 parent 8519d26 commit 625ec6b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pandas/_libs/util.pxd

-18
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
cimport numpy as cnp
2-
from numpy cimport ndarray
32

43
from pandas._libs.tslibs.util cimport *
54

65

7-
cdef extern from "numpy/ndarraytypes.h":
8-
void PyArray_CLEARFLAGS(ndarray arr, int flags) nogil
9-
10-
11-
cdef extern from "numpy/arrayobject.h":
12-
enum:
13-
NPY_ARRAY_C_CONTIGUOUS
14-
NPY_ARRAY_F_CONTIGUOUS
15-
16-
176
cdef extern from "src/headers/stdint.h":
187
enum: UINT8_MAX
198
enum: UINT16_MAX
@@ -42,10 +31,3 @@ ctypedef fused numeric:
4231

4332
cnp.float32_t
4433
cnp.float64_t
45-
46-
47-
cdef inline void set_array_not_contiguous(ndarray ao) nogil:
48-
# Numpy>=1.8-compliant equivalent to:
49-
# ao->flags &= ~(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS);
50-
PyArray_CLEARFLAGS(ao,
51-
(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS))

0 commit comments

Comments
 (0)