Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(761)

Unified Diff: tools/relocation_packer/src/elf_file.cc

Issue 645073002: Remove unused variables in the relocation packer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/relocation_packer/src/elf_file.cc
diff --git a/tools/relocation_packer/src/elf_file.cc b/tools/relocation_packer/src/elf_file.cc
index 25781602b4e70b4f460d752ace9daa42ae58d32a..62c390a2bde39232462df9ef2858cc293005c4b4 100644
--- a/tools/relocation_packer/src/elf_file.cc
+++ b/tools/relocation_packer/src/elf_file.cc
@@ -1004,8 +1004,6 @@ bool ElfFile::PackTypedRelocations(const std::vector<Rel>& relocations,
if (!is_padding_relocations_) {
// Calculate the size of the hole we will close up when we rewrite
// dynamic relocations.
- ELF::Shdr* section_header = ELF::getshdr(relocations_section_);
- const ELF::Off hole_start = section_header->sh_offset;
ssize_t hole_size =
relative_relocations.size() * sizeof(relative_relocations[0]);
const ssize_t unaligned_hole_size = hole_size;
@@ -1217,8 +1215,6 @@ bool ElfFile::UnpackTypedRelocations(const std::vector<uint8_t>& packed,
if (!is_padded) {
// Calculate the size of the hole we will open up when we rewrite
// dynamic relocations.
- ELF::Shdr* section_header = ELF::getshdr(relocations_section_);
- const ELF::Off hole_start = section_header->sh_offset;
ssize_t hole_size =
relative_relocations.size() * sizeof(relative_relocations[0]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698