Skip to content

Commit bc75630

Browse files
generatedunixname537391475639613facebook-github-bot
authored andcommitted
fbcode/cinderx/StaticPython/static_array.c
Reviewed By: alexmalyshev Differential Revision: D83256765 fbshipit-source-id: 8bebe5f28dc601772615ff2417c206c45f5e4b06
1 parent 454d881 commit bc75630

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

cinderx/StaticPython/static_array.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,6 @@ static inline void staticarray_zeroinitialize(
3333
memset(sa->ob_item, 0, size * PyStaticArray_Spec.itemsize);
3434
}
3535

36-
static PyObject* staticarray_vectorcall(
37-
PyObject* type,
38-
PyObject* const* args,
39-
size_t nargsf,
40-
PyObject* kwnames) {
41-
if (!_PyArg_NoKwnames("staticarray", kwnames)) {
42-
return NULL;
43-
}
44-
45-
Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
46-
if (!_PyArg_CheckPositional("staticarray", nargs, 1, 1)) {
47-
return NULL;
48-
}
49-
50-
PyObject* length = args[0];
51-
Py_ssize_t size = PyLong_AsSize_t(length);
52-
if (size == -1 && PyErr_Occurred()) {
53-
return NULL;
54-
}
55-
PyStaticArrayObject* new = staticarray_alloc(size);
56-
staticarray_zeroinitialize(new, size);
57-
return (PyObject*)new;
58-
}
59-
6036
static PyObject* staticarray_to_list(PyObject* sa) {
6137
PyStaticArrayObject* array = (PyStaticArrayObject*)sa;
6238
PyObject* list = PyList_New(Py_SIZE(sa));

0 commit comments

Comments
 (0)