efinixHexParser: remove unused reverseOrder

This commit is contained in:
Gwenhael Goavec-Merou 2022-03-20 08:51:18 +01:00
parent 3f5aca5248
commit cdc68b5dfc
3 changed files with 4 additions and 8 deletions

View File

@ -109,7 +109,7 @@ void Efinix::program(unsigned int offset, bool unprotect_flash)
ConfigBitstreamParser *bit; ConfigBitstreamParser *bit;
try { try {
if (_file_extension == "hex") { if (_file_extension == "hex") {
bit = new EfinixHexParser(_filename, _verbose); bit = new EfinixHexParser(_filename);
} else { } else {
if (offset == 0) { if (offset == 0) {
printError("Error: can't write raw data at the beginning of the flash"); printError("Error: can't write raw data at the beginning of the flash");

View File

@ -12,9 +12,9 @@
using namespace std; using namespace std;
EfinixHexParser::EfinixHexParser(const string &filename, bool reverseOrder): EfinixHexParser::EfinixHexParser(const string &filename):
ConfigBitstreamParser(filename, ConfigBitstreamParser::ASCII_MODE, ConfigBitstreamParser(filename, ConfigBitstreamParser::ASCII_MODE,
false), _reverseOrder(reverseOrder) false)
{} {}
int EfinixHexParser::parse() int EfinixHexParser::parse()

View File

@ -21,17 +21,13 @@ class EfinixHexParser: public ConfigBitstreamParser {
/*! /*!
* \brief constructor * \brief constructor
* \param[in] filename: raw file to read * \param[in] filename: raw file to read
* \param[in] reverseOrder: reverse each byte (LSB -> MSB, MSB -> LSB)
*/ */
EfinixHexParser(const std::string &filename, bool reverseOrder); EfinixHexParser(const std::string &filename);
/*! /*!
* \brief read full content of the file, fill the buffer * \brief read full content of the file, fill the buffer
* \return EXIT_SUCCESS is file is fully read, EXIT_FAILURE otherwhise * \return EXIT_SUCCESS is file is fully read, EXIT_FAILURE otherwhise
*/ */
int parse() override; int parse() override;
private:
bool _reverseOrder; /*!< tail if byte must be reversed */
}; };
#endif // SRC_EFINIXHEXPARSER_HPP_ #endif // SRC_EFINIXHEXPARSER_HPP_