Skip to content

Commit

Permalink
Remove useless code.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Aug 24, 2024
1 parent 76df04f commit d199f52
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Cython/Compiler/FusedNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,6 @@ def _buffer_check_numpy_dtype_setup_cases(self, pyx_code):
pyx_code.putln("pass")
pyx_code.named_insertion_point("dtype_complex")

with pyx_code.indenter("elif kind == u'O':"):
pyx_code.putln("pass")
#pyx_code.named_insertion_point("dtype_object") # FIXME: unused?

match = "dest_sig[{{dest_sig_idx}}] = '{{specialized_type_name}}'"
no_match = "dest_sig[{{dest_sig_idx}}] = None"
def _buffer_check_numpy_dtype(self, pyx_code, specialized_buffer_types, pythran_types):
Expand Down Expand Up @@ -493,7 +489,6 @@ def _buffer_checks(self, buffer_types, pythran_types, pyx_code, decl_code, accep
else:
arg_is_pythran_compatible = not (arg.flags.f_contiguous and (<Py_ssize_t>arg.ndim) > 1)
""")
#pyx_code.named_insertion_point("numpy_dtype_checks") # FIXME: unused?
self._buffer_check_numpy_dtype(pyx_code, buffer_types, pythran_types)
pyx_code.dedent(2)

Expand Down Expand Up @@ -718,7 +713,6 @@ def __pyx_fused_cpdef(signatures, args, kwargs, defaults, _fused_sigindex={}):

pyx_code.indent() # indent following code to function body
pyx_code.named_insertion_point("imports")
#pyx_code.named_insertion_point("func_defs") # FIXME: unused?
pyx_code.named_insertion_point("local_variable_declarations")

fused_index = 0
Expand Down

0 comments on commit d199f52

Please sign in to comment.