diff options
author | Samuel Huang <huangs@chromium.org> | 2018-03-28 22:20:09 +0000 |
---|---|---|
committer | Edward Lesmes <ehmaldonado@google.com> | 2021-07-23 22:00:41 +0000 |
commit | 1a73d78bea5b940a8f5499e31ad9794d9aa7d475 (patch) | |
tree | 08744f9e46995c6b109993b8264ce3f46bbde0ef /patch_reader.h | |
parent | 4feab7d1a15a2aaa51f34f24c68ec80d285948ee (diff) | |
download | zucchini-1a73d78bea5b940a8f5499e31ad9794d9aa7d475.tar.gz |
[Zucchini] Format change: Remove PatchType.
Previously, Zucchini patches store a uint32_t PatchType enum that
distinguishes among (0) raw patch, (1) single executable patch, and
(2) ensemble patch. However, ever since every element (and gap) stores
ExecutableType, this PatchType field has become a vestige. This CL
simplifies Zucchini by removing PatchType, including in README.md
and tests.
This CL alters Zucchini patch format (removes 4 bytes); patches created
across this change are incompatible.
Bug: 729154
Change-Id: Ia5f467ba5e01720f5085ce87a5de88f678a64930
Reviewed-on: https://chromium-review.googlesource.com/981789
Commit-Queue: Samuel Huang <huangs@chromium.org>
Reviewed-by: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546621}
NOKEYCHECK=True
GitOrigin-RevId: 325bcee07f3eb9e3604c8aa0367ae7145025ddb6
Diffstat (limited to 'patch_reader.h')
-rw-r--r-- | patch_reader.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/patch_reader.h b/patch_reader.h index ef6cd32..ad517f5 100644 --- a/patch_reader.h +++ b/patch_reader.h @@ -263,12 +263,10 @@ class EnsemblePatchReader { bool CheckNewFile(ConstBufferView new_image) const; const PatchHeader& header() const { return header_; } - PatchType patch_type() const { return patch_type_; } const std::vector<PatchElementReader>& elements() const { return elements_; } private: PatchHeader header_; - PatchType patch_type_; std::vector<PatchElementReader> elements_; }; |