From 29cd829eb36cfe98b1fe149fb7db258db93d3878 Mon Sep 17 00:00:00 2001 From: Roland Lutz Date: Tue, 11 Jul 2017 18:22:49 +0200 Subject: icemulti: Remove class `Header' --- icemulti/icemulti.cc | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/icemulti/icemulti.cc b/icemulti/icemulti.cc index d73ef0c..d9c6dae 100644 --- a/icemulti/icemulti.cc +++ b/icemulti/icemulti.cc @@ -121,11 +121,6 @@ void Image::write(std::ostream &ofs, uint32_t &file_offset) write_file(ofs, file_offset, ifs, filename); } -class Header { -public: - Image const *image; -}; - static void write_header(std::ostream &ofs, uint32_t &file_offset, Image const *image, bool coldboot) { @@ -193,7 +188,7 @@ int main(int argc, char **argv) int image_count = 0; int align_bits = 0; bool align_first = false; - Header headers[NUM_HEADERS]; + Image *header_images[NUM_HEADERS]; std::unique_ptr images[NUM_IMAGES]; const char *outfile_name = NULL; @@ -275,10 +270,10 @@ int main(int argc, char **argv) // Populate headers for (int i=0; i