From: Richard Purdie Date: Wed, 4 Jan 2023 14:18:19 +0000 (+0000) Subject: package: Drop unused function and obsolete comment X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3745718f8ec3bbed9816bf3d891e9885f8518b5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git package: Drop unused function and obsolete comment The function appears unused and the comment obsolete, drop them. Signed-off-by: Richard Purdie --- diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass index 21a50bbb45e..5c250776f8d 100644 --- a/meta/classes-global/package.bbclass +++ b/meta/classes-global/package.bbclass @@ -243,18 +243,6 @@ python () { d.appendVarFlag('do_package', 'deptask', " do_packagedata") } -def checkbuildpath(file, d): - tmpdir = d.getVar('TMPDIR') - with open(file) as f: - file_content = f.read() - if tmpdir in file_content: - return True - - return False - -# -# Used by do_packagedata (and possibly other routines post do_package) -# PRSERV_ACTIVE = "${@bool(d.getVar("PRSERV_HOST"))}" PRSERV_ACTIVE[vardepvalue] = "${PRSERV_ACTIVE}"