From cd369a732e17e57794a89519de6bab3847330630 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 24 Mar 2022 00:14:58 +0100 Subject: license.bbclass: Remove the available_licenses() function It is no longer used in OE-Core. (From OE-Core rev: aa662aae352c65cb5d13172bf98ed4ae3cb46c26) Signed-off-by: Peter Kjellerstedt Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/classes/license.bbclass | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'meta/classes/license.bbclass') diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 813e1ea4f5..0c637e966e 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -256,21 +256,6 @@ def canonical_license(d, license): """ return d.getVarFlag('SPDXLICENSEMAP', license) or license -def available_licenses(d): - """ - Return the available licenses by searching the directories specified by - COMMON_LICENSE_DIR and LICENSE_PATH. - """ - lic_dirs = ((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' + - (d.getVar('LICENSE_PATH') or '')).split() - - licenses = [] - for lic_dir in lic_dirs: - licenses += os.listdir(lic_dir) - - licenses = sorted(licenses) - return licenses - def expand_wildcard_licenses(d, wildcard_licenses): """ There are some common wildcard values users may want to use. Support them -- cgit v1.2.3-54-g00ecf