Skip to content

Commit 0e349ed

Browse files
committed
TIDS990 no longer uses collectSectors.
1 parent 6011747 commit 0e349ed

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

arch/tids990/encoder.cc

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,6 @@ class Tids990Encoder : public Encoder
6060
}
6161

6262
public:
63-
std::vector<std::shared_ptr<const Sector>> collectSectors(
64-
const Location& location, const Image& image) override
65-
{
66-
std::vector<std::shared_ptr<const Sector>> sectors;
67-
68-
for (char sectorChar : _config.sector_skew())
69-
{
70-
int sectorId = charToInt(sectorChar);
71-
const auto& sector =
72-
image.get(location.logicalTrack, location.head, sectorId);
73-
if (sector)
74-
sectors.push_back(sector);
75-
}
76-
77-
return sectors;
78-
}
79-
8063
std::unique_ptr<Fluxmap> encode(const Location& location,
8164
const std::vector<std::shared_ptr<const Sector>>& sectors,
8265
const Image& image) override

arch/tids990/tids990.proto

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ message Tids990EncoderProto {
2121
(help) = "size of gap 2 (the post-ID gap)" ];
2222
optional int32 gap3_bytes = 8 [ default = 51,
2323
(help) = "size of gap 3 (the post-data or format gap)" ];
24-
optional string sector_skew = 9 [ default = "1mhc72nid83oje94pkfa50lgb6",
25-
(help) = "order to emit sectors" ];
2624
}
2725

src/formats/tids990.textpb

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,32 @@ layout {
1616
layoutdata {
1717
sector_size: 288
1818
physical {
19-
start_sector: 0
20-
count: 26
19+
sector: 1
20+
sector: 22
21+
sector: 17
22+
sector: 12
23+
sector: 7
24+
sector: 2
25+
sector: 23
26+
sector: 18
27+
sector: 13
28+
sector: 8
29+
sector: 3
30+
sector: 24
31+
sector: 19
32+
sector: 14
33+
sector: 9
34+
sector: 4
35+
sector: 25
36+
sector: 20
37+
sector: 15
38+
sector: 10
39+
sector: 5
40+
sector: 0
41+
sector: 21
42+
sector: 16
43+
sector: 11
44+
sector: 6
2145
}
2246
}
2347
}

0 commit comments

Comments
 (0)