Compare commits

..

1 Commits

Author SHA1 Message Date
froejdh_e
247b71a67a marked unused functions readDataFile/writeDataFile deprecated in file_utils.h 2025-12-16 17:13:46 +01:00
4 changed files with 7 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ Checks: '*,
-llvmlibc-*' -llvmlibc-*'
HeaderFilterRegex: \.h HeaderFilterRegex: \.h
AnalyzeTemporaryDtors: false
FormatStyle: none FormatStyle: none
CheckOptions: CheckOptions:
- { key: readability-identifier-naming.NamespaceCase, value: lower_case } - { key: readability-identifier-naming.NamespaceCase, value: lower_case }

View File

@@ -37,6 +37,8 @@ Experimental support for building the detector client (including python bindings
``rx_dbitlist`` keeps the order of the passed bit list ``rx_dbitlist`` keeps the order of the passed bit list
Marked unused functions readDataFile/writeDataFile deprecated in file_utils.h
2 On-board Detector Server Compatibility 2 On-board Detector Server Compatibility
========================================== ==========================================

View File

@@ -16,6 +16,7 @@ namespace sls {
* @param nch number of channels * @param nch number of channels
* @param offset start channel value * @param offset start channel value
*/ */
[[deprecated]]
int readDataFile(std::ifstream &infile, short int *data, int nch, int readDataFile(std::ifstream &infile, short int *data, int nch,
int offset = 0); int offset = 0);
@@ -23,6 +24,7 @@ int readDataFile(std::ifstream &infile, short int *data, int nch,
* @param data array of data value * @param data array of data value
* @param nch number of channels * @param nch number of channels
*/ */
[[deprecated]]
int readDataFile(std::string fname, short int *data, int nch); int readDataFile(std::string fname, short int *data, int nch);
std::vector<char> readBinaryFile(const std::string &fname, std::vector<char> readBinaryFile(const std::string &fname,
@@ -33,6 +35,7 @@ std::vector<char> readBinaryFile(const std::string &fname,
* @param data array of data values * @param data array of data values
* @param offset start channel number * @param offset start channel number
*/ */
[[deprecated]]
int writeDataFile(std::ofstream &outfile, int nch, short int *data, int writeDataFile(std::ofstream &outfile, int nch, short int *data,
int offset = 0); int offset = 0);
@@ -40,6 +43,7 @@ int writeDataFile(std::ofstream &outfile, int nch, short int *data,
* @param nch number of channels * @param nch number of channels
* @param data array of data values * @param data array of data values
*/ */
[[deprecated]]
int writeDataFile(std::string fname, int nch, short int *data); int writeDataFile(std::string fname, int nch, short int *data);
// mkdir -p path implemented by recursive calls // mkdir -p path implemented by recursive calls

View File

@@ -804,8 +804,6 @@ typedef struct {
} }
sls_detector_module &operator=(const sls_detector_module &other) { sls_detector_module &operator=(const sls_detector_module &other) {
if(this == &other)
return *this;
delete[] dacs; delete[] dacs;
delete[] chanregs; delete[] chanregs;
serialnumber = other.serialnumber; serialnumber = other.serialnumber;