]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/buildhistory: remove unused functions
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 2 Aug 2012 09:23:03 +0000 (10:23 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Aug 2012 14:27:40 +0000 (15:27 +0100)
getlastrecipeversion and readRecipeInfo weren't called anywhere.
Remove them so we don't have to keep them up-to-date with future
additions to the recipe info file.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index c3555dacbcc8fccbd960b6f4920791ce729b5615..510a6df85ae1e907a2113872e4a22eefe81e5163 100644 (file)
@@ -68,28 +68,6 @@ python buildhistory_emit_pkghistory() {
 
         return val
 
-    def readRecipeInfo(pn, histfile):
-        rcpinfo = RecipeInfo(pn)
-        f = open(histfile, "r")
-        try:
-            for line in f:
-                lns = line.split('=')
-                name = lns[0].strip()
-                value = lns[1].strip(" \t\r\n").strip('"')
-                if name == "PE":
-                    rcpinfo.pe = value
-                elif name == "PV":
-                    rcpinfo.pv = value
-                elif name == "PR":
-                    rcpinfo.pr = value
-                elif name == "DEPENDS":
-                    rcpinfo.depends = value
-                elif name == "PACKAGES":
-                    rcpinfo.packages = value
-        finally:
-            f.close()
-        return rcpinfo
-
     def readPackageInfo(pkg, histfile):
         pkginfo = PackageInfo(pkg)
         f = open(histfile, "r")
@@ -118,13 +96,6 @@ python buildhistory_emit_pkghistory() {
             f.close()
         return pkginfo
 
-    def getlastrecipeversion(pn):
-        try:
-            histfile = os.path.join(pkghistdir, "latest")
-            return readRecipeInfo(pn, histfile)
-        except EnvironmentError:
-            return None
-
     def getlastpkgversion(pkg):
         try:
             histfile = os.path.join(pkghistdir, pkg, "latest")