diff --git a/src/partition/partitions.cpp b/src/partition/partitions.cpp index 2047340..70cc1bd 100644 --- a/src/partition/partitions.cpp +++ b/src/partition/partitions.cpp @@ -393,11 +393,6 @@ bool Partitions::search_partitions_egold(uint32_t start_addr) { data.read_type(offset, &blocks_count, 1); data.read_type(offset + 2, &block_segment_addr, 1); - // uint16_t segment = block_segment_addr >> 16; - // uint16_t segment_offset = block_segment_addr & 0xFFFF; - - // size_t ff_offset = ((segment * 0x4000) + segment_offset) - base_address; - size_t ff_offset = segment_to_page(block_segment_addr) - base_address; if (ff_offset >= data.get_size()) { @@ -472,11 +467,6 @@ bool Partitions::search_partitions_egold(uint32_t start_addr) { continue; } - // uint16_t segment = block_segment_addr >> 16; - // uint16_t segment_offset = block_segment_addr & 0xFFFF; - - // size_t ff_offset = ((segment * 0x4000) + segment_offset) - base_address; - size_t ff_offset = segment_to_page(block_segment_addr) - base_address; if (ff_offset >= data.get_size()) { @@ -759,24 +749,6 @@ bool Partitions::search_partitions_sgold(uint32_t start_addr) { if (!partitions_map.empty()) { break; } - - // if (!partitions_map.empty()) { - // bool ffs_found = false; - - // for (const auto &pair : partitions_map) { - // if (pair.first.find("FFS") != std::string::npos) { - // ffs_found = true; - - // break; - // } - // } - - // if (ffs_found) { - // break; - // } - - // partitions_map.clear(); - // } } return true;