Commit 2ad234e2 authored by gsamain's avatar gsamain

Remove old nogil classes creation code

parent bebb6156
...@@ -1125,7 +1125,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -1125,7 +1125,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
self.sue_header_footer(type, "struct", type.objstruct_cname) self.sue_header_footer(type, "struct", type.objstruct_cname)
code.putln(header) code.putln(header)
base_type = type.base_type base_type = type.base_type
nogil = type.nogil
if base_type: if base_type:
basestruct_cname = base_type.objstruct_cname basestruct_cname = base_type.objstruct_cname
if basestruct_cname == "PyTypeObject": if basestruct_cname == "PyTypeObject":
...@@ -1136,16 +1135,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -1136,16 +1135,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
("struct ", "")[base_type.typedef_flag], ("struct ", "")[base_type.typedef_flag],
basestruct_cname, basestruct_cname,
Naming.obj_base_cname)) Naming.obj_base_cname))
elif nogil:
# Extension type with nogil keyword indicate it is a CPython-free struct
code.globalstate.use_utility_code(
UtilityCode.load_cached("CythonReferenceCounting", "ObjectHandling.c"))
code.putln(
"// nogil"
)
code.putln(
"CyObject_HEAD"
)
else: else:
code.putln( code.putln(
"PyObject_HEAD") "PyObject_HEAD")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment