diff mbox series

[06/10] package: Drop unused function and obsolete comment

Message ID 20230104154714.1168535-6-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit f3745718f8ec3bbed9816bf3d891e9885f8518b5
Headers show
Series [01/10] package: Move fixup_perms function to bb function library | expand

Commit Message

Richard Purdie Jan. 4, 2023, 3:47 p.m. UTC
The function appears unused and the comment obsolete, drop them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes-global/package.bbclass | 12 ------------
 1 file changed, 12 deletions(-)
diff mbox series

Patch

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}"