Remove the visualiser integration from the reader.

This commit is contained in:
David Given
2021-04-16 21:38:26 +02:00
parent e8665bd00c
commit 0b285aa7f4

View File

@@ -10,7 +10,6 @@
#include "decoders/decoders.h"
#include "sector.h"
#include "sectorset.h"
#include "visualiser.h"
#include "record.h"
#include "bytes.h"
#include "decoders/rawbits.h"
@@ -25,7 +24,6 @@ FlagGroup readerFlags
&hardwareFluxSourceFlags,
&sqliteFluxSinkFlags,
&fluxmapReaderFlags,
&visualiserFlags
};
static DataSpecFlag source(
@@ -43,11 +41,6 @@ static StringFlag destination(
"write the raw magnetic flux to this file",
"");
static StringFlag visualise(
{ "--write-svg" },
"write a visualisation of the disk to this file",
"");
static SettableFlag justRead(
{ "--just-read" },
"just read the disk and do no further processing");
@@ -299,9 +292,6 @@ void readDiskCommand(AbstractDecoder& decoder)
std::cout << size << " bytes decoded." << std::endl;
}
if (!visualise.get().empty())
visualiseSectorsToFile(allSectors, visualise.get());
writeSectorsToFile(allSectors, outputSpec);
if (failures)
std::cerr << "Warning: some sectors could not be decoded." << std::endl;