From bfcffd02cf1ce22efe289d37158efced20e5533d Mon Sep 17 00:00:00 2001 From: Roman Serov Date: Sun, 27 Jul 2025 12:10:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D0=BE=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/partition/partitions.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) 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;