From 6a324ba588af6e7f1e4a13cfb2e95ed7738d487e Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Tue, 23 May 2017 17:15:14 -0700 Subject: [PATCH] Remove the obsolete UnpackPackageDir() in edify generator package_extract_dir is used in file based OTA only and should be killed. Bug: 37959785 Test: code search shows no usage of this function in aosp. Change-Id: Id3719b969c24b7ecef0c7f0e4a3af09a72be54d4 --- tools/releasetools/edify_generator.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py index 2a9a4178ec..7883fe6ec3 100644 --- a/tools/releasetools/edify_generator.py +++ b/tools/releasetools/edify_generator.py @@ -230,11 +230,6 @@ class EdifyGenerator(object): p.mount_point, mount_flags)) self.mounts.add(p.mount_point) - def UnpackPackageDir(self, src, dst): - """Unpack a given directory from the OTA package into the given - destination directory.""" - self.script.append('package_extract_dir("%s", "%s");' % (src, dst)) - def Comment(self, comment): """Write a comment into the update script.""" self.script.append("")