浏览代码

swupdate-common: drop obsolete swupdate_is_hash_needed

Signed-off-by: Stefano Babic <sbabic@denx.de>
Stefano Babic 4 年之前
父节点
当前提交
7e72a015d5
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      classes/swupdate-common.bbclass

+ 0 - 9
classes/swupdate-common.bbclass

@@ -15,13 +15,6 @@ python () {
     d.appendVarFlag('do_swuimage', 'depends', deps)
 }
 
-def swupdate_is_hash_needed(s, filename):
-    with open(os.path.join(s, "sw-description"), 'r') as f:
-        for line in f:
-            if line.find("@%s" % (filename)) != -1:
-                return True
-    return False
-
 def swupdate_getdepends(d):
     def adddep(depstr, deps):
         for i in (depstr or "").split():
@@ -348,5 +341,3 @@ python do_swuimage () {
     line = 'ln -sf ' + d.getVar('IMAGE_NAME', True) + '.swu ' + d.getVar('IMAGE_LINK_NAME', True) + '.swu'
     os.system("cd " + imgdeploydir + "; " + line)
 }
-
-