Commit 12206c2b authored by gsamain's avatar gsamain

Remove dead checks on c_class_nogil

parent c87bc22b
......@@ -3300,15 +3300,7 @@ def p_c_func_or_var_declaration(s, pos, ctx):
fatal=False)
s.next()
p_test(s) # Keep going, but ignore result.
#nogil = ctx.nogil
#if s.sy == 'nogil':
# nogil = p_nogil(s)
# s.next()
# if ctx.level == 'c_class_nogil' and not nogil:
# s.error("Only C function with nogil allowed in nogil extension")
if s.sy == ':':
#if ctx.level == 'c_class_nogil' and not ctx.nogil:
# s.error("Only C function declared with ccdef allowed in nogil extension")
if ctx.level not in ('module', 'c_class', 'module_pxd', 'c_class_pxd', 'cpp_class') and not ctx.templates:
s.error("C function definition not allowed here")
doc, suite = p_suite_with_docstring(s, Ctx(level='function'))
......
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