]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
package: Drop unused function and obsolete comment
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Jan 2023 14:18:19 +0000 (14:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Jan 2023 11:52:15 +0000 (11:52 +0000)
The function appears unused and the comment obsolete, drop them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/package.bbclass

index 21a50bbb45ebd9242fb7c797c5ec4d50f840ac06..5c250776f8db4bfb8b290ce5b4fbb0328862a389 100644 (file)
@@ -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}"