summaryrefslogtreecommitdiff
path: root/numpy/core/_methods.py
diff options
context:
space:
mode:
authorRoss Barnowski <rossbar@berkeley.edu>2020-03-10 22:27:24 -0700
committerRoss Barnowski <rossbar@berkeley.edu>2020-03-10 22:27:24 -0700
commit3d9b25d6b6234aa95ff54c595e02a916056beab8 (patch)
tree23fa9be4b7796422a3c79076dd8d655768aef3bf /numpy/core/_methods.py
parent2e9169601aff252a661b845399ec61c3e575407f (diff)
downloadnumpy-3d9b25d6b6234aa95ff54c595e02a916056beab8.tar.gz
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.
Diffstat (limited to 'numpy/core/_methods.py')
-rw-r--r--numpy/core/_methods.py4
1 files changed, 0 insertions, 4 deletions
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