aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-07-06 14:03:25 -0700
committerTao Bao <tbao@google.com>2018-07-06 14:21:26 -0700
commita24f711bf3431434cf967832d5ee9b203cba230a (patch)
tree9b2c2269e27868b7275d83c2be6a4f4c1fc0743e
parentee36b42beb63e8d2015d14770578661fb6415106 (diff)
downloadbuild_make-a24f711bf3431434cf967832d5ee9b203cba230a.tar.gz
build_make-a24f711bf3431434cf967832d5ee9b203cba230a.tar.bz2
build_make-a24f711bf3431434cf967832d5ee9b203cba230a.zip
releasetools: Remove three obsolete functions from EdifyGenerator.
Namely MakeTemporary, Verify and FileCheck. They were once used for file-based OTA that has been deprecated. Test: Check that there's no active user, including device-specific releasetools script. Change-Id: Ic73054d73271ad91e860b34b2ba156361c58bc1a
-rw-r--r--tools/releasetools/edify_generator.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py
index 7a819288e0..5c3533e7f5 100644
--- a/tools/releasetools/edify_generator.py
+++ b/tools/releasetools/edify_generator.py
@@ -31,14 +31,6 @@ class EdifyGenerator(object):
else:
self.fstab = fstab
- def MakeTemporary(self):
- """Make a temporary script object whose commands can latter be
- appended to the parent script with AppendScript(). Used when the
- caller wants to generate script commands out-of-order."""
- x = EdifyGenerator(self.version, self.info)
- x.mounts = self.mounts
- return x
-
@property
def required_cache(self):
"""Return the minimum cache size to apply the update."""
@@ -181,22 +173,6 @@ class EdifyGenerator(object):
') || abort("E%d: \\"%s\\" has unexpected contents.");' % (
common.ErrorCode.BAD_PATCH_FILE, filename))
- def Verify(self, filename):
- """Check that the given file has one of the
- given hashes (encoded in the filename)."""
- self.script.append(
- 'apply_patch_check("{filename}") && '
- 'ui_print(" Verified.") || '
- 'ui_print("\\"{filename}\\" has unexpected contents.");'.format(
- filename=filename))
-
- def FileCheck(self, filename, *sha1):
- """Check that the given file has one of the
- given *sha1 hashes."""
- self.script.append('assert(sha1_check(read_file("%s")' % (filename,) +
- "".join([', "%s"' % (i,) for i in sha1]) +
- '));')
-
def CacheFreeSpaceCheck(self, amount):
"""Check that there's at least 'amount' space that can be made
available on /cache."""