chore(radio): remove EEPROM macros and related code (#5461)

This commit is contained in:
philmoz
2024-08-22 10:32:16 +10:00
committed by GitHub
parent 8cfa5b4846
commit e0ec49d84e
83 changed files with 27 additions and 3177 deletions
+1 -21
View File
@@ -34,10 +34,6 @@
#include "sdcard.h"
#if !defined(SDCARD_YAML)
#include "sdcard_raw.h"
#endif
#include "dataconstants.h"
#include "rtc.h"
@@ -221,21 +217,10 @@ class ModelsList : public ModelsVector
void init();
public:
enum class Format {
txt,
#if defined(SDCARD_YAML)
yaml,
yaml_txt,
load_default = yaml,
#else
load_default = txt,
#endif
};
ModelsList();
~ModelsList();
bool load(Format fmt = Format::load_default);
bool load();
const char *save(LabelsVector newOrder=LabelsVector());
void clear();
@@ -249,8 +234,6 @@ class ModelsList : public ModelsVector
return std::vector<ModelCell *>::size();
}
bool readNextLine(char *line, int maxlen);
ModelCell *addModel(const char *name, bool save = true, ModelCell *copyCell = nullptr);
bool removeModel(ModelCell *model);
bool moveModelTo(unsigned curindex, unsigned toindex);
@@ -269,11 +252,8 @@ class ModelsList : public ModelsVector
protected:
FIL file;
bool loadTxt();
#if defined(SDCARD_YAML)
bool loadYaml();
bool loadYamlDirScanner();
#endif
};
ModelLabelsVector getUniqueLabels();