From c5b5cef0c4e6ba7fc3e95bb39c28fb05c128646f Mon Sep 17 00:00:00 2001 From: mgarlanger Date: Sat, 11 Jan 2025 23:43:21 -0600 Subject: [PATCH] minor formatting changes --- src/lib/formats/h17disk.cpp | 4 +--- src/lib/formats/h17disk.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/formats/h17disk.cpp b/src/lib/formats/h17disk.cpp index 5058304827a67..47d164fda1d77 100644 --- a/src/lib/formats/h17disk.cpp +++ b/src/lib/formats/h17disk.cpp @@ -84,7 +84,6 @@ static std::pair find_block(util::random_read &io, u } while (header.block_name != block_id); - // update position to point to data portion of the block return std::make_pair(pos + 8, header.length); } @@ -237,12 +236,11 @@ bool heath_h17d_format::load(util::random_read &io, uint32_t form_factor, const return true; } -void heath_h17d_format::fm_reverse_byte_w(std::__1::vector &buffer, uint8_t val) const +void heath_h17d_format::fm_reverse_byte_w(std::vector &buffer, uint8_t val) const { static unsigned char lookup[16] = { 0x0, 0x8, 0x4, 0xc, 0x2, 0xa, 0x6, 0xe, 0x1, 0x9, 0x5, 0xd, 0x3, 0xb, 0x7, 0xf }; fm_w(buffer, 8, lookup[val & 0x0f] << 4 | lookup[val >> 4], BITCELL_SIZE); } - const heath_h17d_format FLOPPY_H17D_FORMAT; diff --git a/src/lib/formats/h17disk.h b/src/lib/formats/h17disk.h index 0ab539c552612..19ac0bac0526b 100644 --- a/src/lib/formats/h17disk.h +++ b/src/lib/formats/h17disk.h @@ -31,7 +31,6 @@ class heath_h17d_format : public floppy_image_format_t protected: void fm_reverse_byte_w(std::vector &buffer, uint8_t val) const; - }; extern const heath_h17d_format FLOPPY_H17D_FORMAT;