Skip to content

Commit 727d35e

Browse files
committed
zstd: Remove _ZSTD_CONFIG
1 parent aa8a00a commit 727d35e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Modules/_zstd/_zstdmodule.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,6 @@ add_parameters(PyObject *module)
615615
static inline int
616616
add_vars_to_module(PyObject *module)
617617
{
618-
PyObject *obj;
619-
620618
/* zstd_version, str */
621619
if (PyModule_AddStringConstant(module, "zstd_version",
622620
ZSTD_versionString()) < 0) {
@@ -655,23 +653,6 @@ add_vars_to_module(PyObject *module)
655653
return -1;
656654
}
657655

658-
/* _ZSTD_CONFIG */
659-
obj = Py_BuildValue("isOOO", 8*(int)sizeof(Py_ssize_t), "c",
660-
Py_False,
661-
Py_True,
662-
/* User mremap output buffer */
663-
#if defined(HAVE_MREMAP)
664-
Py_True
665-
#else
666-
Py_False
667-
#endif
668-
);
669-
if (PyModule_AddObjectRef(module, "_ZSTD_CONFIG", obj) < 0) {
670-
Py_XDECREF(obj);
671-
return -1;
672-
}
673-
Py_DECREF(obj);
674-
675656
return 0;
676657
}
677658

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy