From 3d9b25d6b6234aa95ff54c595e02a916056beab8 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Tue, 10 Mar 2020 22:27:24 -0700 Subject: MAINT: Remove non-native byte order from _var check. Removes unnecessary code introduced in #15696. Non-native byte orders were explicitly added to the fast-path check in _var for complex numbers. However, the non-native path is unreachable due to coercion in upstream ufuncs. --- numpy/core/_methods.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'numpy/core/_methods.py') diff --git a/numpy/core/_methods.py b/numpy/core/_methods.py index 8a90731e9..6785683a3 100644 --- a/numpy/core/_methods.py +++ b/numpy/core/_methods.py @@ -31,10 +31,6 @@ if nt.dtype(nt.longdouble) != nt.dtype(nt.double): _complex_to_float.update({ nt.dtype(nt.clongdouble) : nt.dtype(nt.longdouble), }) -# Add reverse-endian types -_complex_to_float.update({ - k.newbyteorder() : v.newbyteorder() for k, v in _complex_to_float.items() -}) # avoid keyword arguments to speed up parsing, saves about 15%-20% for very # small reductions -- cgit v1.2.1