diff mbox series

[08/10] oe/spdx_common: Remove unused local variables

Message ID 20260420-spdx3-improvements-v1-8-27e0d5edcdbe@bootlin.com
State Accepted, archived
Commit 0e2c018c759d7a382306cd17053afc02bfd58d9c
Headers show
Series spdx3: Bug fixes and improvements | expand

Commit Message

Benjamin Robin April 20, 2026, 7:44 a.m. UTC
The deploy_dir_spdx variable is assigned from "DEPLOY_DIR_SPDX", but
never used, so remove it. Same for pn variable.

Signed-off-by: Benjamin Robin (Schneider Electric) <benjamin.robin@bootlin.com>
---
 meta/lib/oe/spdx_common.py | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/spdx_common.py b/meta/lib/oe/spdx_common.py
index 47d14b55c701..6b1a409c40c2 100644
--- a/meta/lib/oe/spdx_common.py
+++ b/meta/lib/oe/spdx_common.py
@@ -135,8 +135,6 @@  def collect_package_providers(d, direct_deps):
     Returns a dictionary where each RPROVIDES is mapped to the package that
     provides it
     """
-    deploy_dir_spdx = Path(d.getVar("DEPLOY_DIR_SPDX"))
-
     providers = {}
 
     all_deps = direct_deps + [Dep(d.getVar("PN"), d.getVar("BB_HASHFILENAME"), True)]
@@ -175,7 +173,6 @@  def get_patched_src(d):
     """
     spdx_workdir = d.getVar("SPDXWORK")
     spdx_sysroot_native = d.getVar("STAGING_DIR_NATIVE")
-    pn = d.getVar("PN")
 
     workdir = d.getVar("WORKDIR")