remove vestigial WriteFirmwareImage function

Nothing calls this, and the updater function it calls no longer
exists.  The HTC-device-specific thing it used to do was moved to HTC
extension libraries.

Change-Id: I2252adf44ea0c5beb6e9379215d7337880f66f68
This commit is contained in:
Doug Zongker 2011-03-02 10:57:06 -08:00
parent b48e7c400b
commit 369985c6f2
1 changed files with 0 additions and 12 deletions

View File

@ -202,18 +202,6 @@ class EdifyGenerator(object):
cmd = "".join(cmd)
self.script.append(self._WordWrap(cmd))
def WriteFirmwareImage(self, kind, fn):
"""Arrange to update the given firmware image (kind must be
"hboot" or "radio") when recovery finishes."""
if self.version == 1:
self.script.append(
('assert(package_extract_file("%(fn)s", "/tmp/%(kind)s.img"),\n'
' write_firmware_image("/tmp/%(kind)s.img", "%(kind)s"));')
% {'kind': kind, 'fn': fn})
else:
self.script.append(
'write_firmware_image("PACKAGE:%s", "%s");' % (fn, kind))
def WriteRawImage(self, mount_point, fn):
"""Write the given package file into the partition for the given
mount point."""