From patchwork Thu Nov 30 10:59:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 120130 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp510377qgn; Thu, 30 Nov 2017 02:59:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMZMh4N1G5Ea/YFLIhlVcarn2iO/CWExxwfUyDXNl8p/do4fDeMhbBmqoLPB8+nKnepNGyn9 X-Received: by 10.101.101.216 with SMTP id y24mr2099759pgv.236.1512039550556; Thu, 30 Nov 2017 02:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512039550; cv=none; d=google.com; s=arc-20160816; b=ZkEK2KIxKes8C05jzaN3wZJC5OP4gmvInjVGVAVDsBmww1/H3cde640BgwmW03XUhj QIyvcZfr6O8WWrmi9HACbGubNz8B5KFyQ6WuYfHP1Q3zN4ey18jsnUNoPc9v3UJ8XSee V2dZLcjbNrVDKW3MGU5g+VU4EaiR69ViHjN4GNH8wvF5H/TKEPWptLAtwlSIUIeEoIC2 jq4DIodZnp9x7JwUA5Q5ULjPL6MroW72DP1p7aIsc++sCAiq6kxoCtbPqQzVxDDIPWIA Pcsedp1mPdkiU6SIsskkTKGBEuQSFv+lpgPZm+kE+0waZGF2/mQ/GDLYkD9J8otMH9qZ VJoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=3cDKvyepV4P0y7ktdtsJTQB2BCt215rnAczUNfllNTg=; b=xDYVFlaI3iqbpg3EwIdDlb6kaIZagmlQbCYBgsvqOy2TY/5zNtnhzZVNnaB4erMdoE HC8B4ewn2uw4DMgVXwK3g0ctVToonkr0HdLFVe9UF/Y9lTJXrL1k7YXCJOJv9kFYLHPl cxsnpigkmUNDsn+50WecNoyf3jGOLv71FBL2AXe+QJ/ZDMrjOi7CyUCxb5i6kJoAEgA2 UiU55Uvffn20lvzfql2zfZwJr/YT/Rzry2pw5OeZxqGo4zi3spTvHmebM68PP+05Dy9X MNe5VMhsw63WOBbMEBi/paiBPp8h0nuFDEvabMaJK+y1+S9aS0ViEFIe8gKj8sik9cEF FNgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=iMAFWwgL; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id o27si300771pgc.320.2017.11.30.02.59.10; Thu, 30 Nov 2017 02:59:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=iMAFWwgL; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 20DEA78477; Thu, 30 Nov 2017 10:59:08 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by mail.openembedded.org (Postfix) with ESMTP id BB0AE78447 for ; Thu, 30 Nov 2017 10:59:06 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id f140so11567141wmd.2 for ; Thu, 30 Nov 2017 02:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=0Qwewi1v/NsuO1IH3ZSslEbPjqdIApDRUg3qIupXKVc=; b=iMAFWwgLtyLCevkbiQ69EJ+rIM7DUl/qnk/X58OfG17EccMWz360hQRISQOTz9Gv6/ u/WG8Q2RkAnrFrED0TguDpXJWPdA6S72bN2MqiVwvq1cuFX+eZ7c04tWbjwjr8dst69m mrA9g6N3cPnnG0AV/1euMubfTJmXAkr3iTxK7cdYPJVEPgnZEHa0v7Xa/Qk1AZ3htle6 usvgQW1svTMXbhvbdyFyy7DP9pLxKZvkXT5MbScs3eFlOg8fNQjEqUYAGICzAJVcaq8k xaBDOCQznP7ZhFByo9bz13Vfu4/XWyhoXjRt3jlGBWI3aQ9saW0fsLlFWqo83drKtj9i 99aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=0Qwewi1v/NsuO1IH3ZSslEbPjqdIApDRUg3qIupXKVc=; b=Tk6PvGycb3LhN7h1+EcdeBc5MLY7rbNdo5z3pUiqEKhjIetKzgfMepQVRzCa22HPDE +EL58yLUS+1xsrBOCAjE77+68uPKmzrZJUZFEukpGtflinXM+OEO4NPmJKJ4t5V3YHTQ FIcCpBoC5BkOqRZCT51jlrW0OjISWsNcI11Hnpyl0Skcb4584y3qY/KwzwoNqeM2mPNU Ggf8KqD6nR+77LgoutsFtH1zKHn/iY9k2/Z22vHQ2us1FA0sHiHfH6X80uCtI/xnrMh2 Hw7UFMd5M4Tp6BGvX/ron+cooIX341tbXog3soW9obsR5wNm4AB/Na2LAQ6h91wECKdf oujw== X-Gm-Message-State: AJaThX4FJNfNurvvxOtvDC2vC1PEbRE1fhWP6DSJJYGPFbwclYjOS5Y/ eL82S2hBW27t4SKIiAsgrRxX3blL X-Received: by 10.28.90.65 with SMTP id o62mr1490019wmb.16.1512039547230; Thu, 30 Nov 2017 02:59:07 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l140sm8879287wma.5.2017.11.30.02.59.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 02:59:06 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 30 Nov 2017 10:59:04 +0000 Message-Id: <20171130105904.32364-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] lib/oe/utils: remove param_bool() X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This function is not used by any classes or recipes that I can find, so lets delete it. Signed-off-by: Ross Burton --- meta/lib/oe/utils.py | 11 ----------- 1 file changed, 11 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 643ab78df7a..1897c5faea0 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -86,17 +86,6 @@ def str_filter_out(f, str, d): from re import match return " ".join([x for x in str.split() if not match(f, x, 0)]) -def param_bool(cfg, field, dflt = None): - """Lookup in map and convert it to a boolean; take - when this does not exist""" - value = cfg.get(field, dflt) - strvalue = str(value).lower() - if strvalue in ('yes', 'y', 'true', 't', '1'): - return True - elif strvalue in ('no', 'n', 'false', 'f', '0'): - return False - raise ValueError("invalid value for boolean parameter '%s': '%s'" % (field, value)) - def build_depends_string(depends, task): """Append a taskname to a string of dependencies as used by the [depends] flag""" return " ".join(dep + ":" + task for dep in depends.split())