| Message ID | 20260420-spdx3-improvements-v1-4-27e0d5edcdbe@bootlin.com |
|---|---|
| State | Accepted, archived |
| Commit | 517103a3852f94ea1e5c4fba795707284d54362d |
| Headers | show |
| Series | spdx3: Bug fixes and improvements | expand |
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index cd9672c18e8c..6609784907db 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -39,7 +39,6 @@ def add_license_expression( ): simple_license_text = {} license_text_map = {} - license_ref_idx = 0 def add_license_text(name): nonlocal objset @@ -96,7 +95,6 @@ def add_license_expression( def convert(l): nonlocal license_text_map - nonlocal license_ref_idx if l == "(" or l == ")": return l
This local variable is never used in the whole code base, so it is safe to remove it. Signed-off-by: Benjamin Robin (Schneider Electric) <benjamin.robin@bootlin.com> --- meta/lib/oe/spdx30_tasks.py | 2 -- 1 file changed, 2 deletions(-)