diff options
author | Matti Picus <matti.picus@gmail.com> | 2021-07-09 09:06:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 09:06:05 +0300 |
commit | 1f95d7914ff23ffeb95767de79c55b4f702e6f2f (patch) | |
tree | 4c244226b594ce7235f8095e4be084eac5734af4 /numpy/linalg/linalg.py | |
parent | 1d7939e1d26adbedaeec98c8153ea2e37297f520 (diff) | |
parent | 6ce7835aa8ac388724739956e06bef4bd8abdac2 (diff) | |
download | numpy-1f95d7914ff23ffeb95767de79c55b4f702e6f2f.tar.gz |
Merge pull request #19102 from default-303/LGTM_unused_variables
MAINT: Removed suitable unused variables shown in LGTM
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r-- | numpy/linalg/linalg.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index e150952e3..10f7f9ae0 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -128,10 +128,6 @@ def _realType(t, default=double): def _complexType(t, default=cdouble): return _complex_types_map.get(t, default) -def _linalgRealType(t): - """Cast the type t to either double or cdouble.""" - return double - def _commonType(*arrays): # in lite version, use higher precision (always double or cdouble) result_type = single @@ -2275,8 +2271,6 @@ def lstsq(a, b, rcond="warn"): raise LinAlgError('Incompatible dimensions') t, result_t = _commonType(a, b) - # FIXME: real_t is unused - real_t = _linalgRealType(t) result_real_t = _realType(result_t) # Determine default rcond value |