From 247b71a67a0cefb13885260cbba62823e539811d Mon Sep 17 00:00:00 2001 From: froejdh_e Date: Tue, 16 Dec 2025 17:13:46 +0100 Subject: [PATCH] marked unused functions readDataFile/writeDataFile deprecated in file_utils.h --- RELEASE.txt | 2 ++ slsSupportLib/include/sls/file_utils.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/RELEASE.txt b/RELEASE.txt index dd2dbabec..cde6a995a 100644 --- a/RELEASE.txt +++ b/RELEASE.txt @@ -37,6 +37,8 @@ Experimental support for building the detector client (including python bindings ``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 ========================================== diff --git a/slsSupportLib/include/sls/file_utils.h b/slsSupportLib/include/sls/file_utils.h index 010fc640c..3e5423a9b 100644 --- a/slsSupportLib/include/sls/file_utils.h +++ b/slsSupportLib/include/sls/file_utils.h @@ -16,6 +16,7 @@ namespace sls { * @param nch number of channels * @param offset start channel value */ +[[deprecated]] int readDataFile(std::ifstream &infile, short int *data, int nch, int offset = 0); @@ -23,6 +24,7 @@ int readDataFile(std::ifstream &infile, short int *data, int nch, * @param data array of data value * @param nch number of channels */ +[[deprecated]] int readDataFile(std::string fname, short int *data, int nch); std::vector readBinaryFile(const std::string &fname, @@ -33,6 +35,7 @@ std::vector readBinaryFile(const std::string &fname, * @param data array of data values * @param offset start channel number */ +[[deprecated]] int writeDataFile(std::ofstream &outfile, int nch, short int *data, int offset = 0); @@ -40,6 +43,7 @@ int writeDataFile(std::ofstream &outfile, int nch, short int *data, * @param nch number of channels * @param data array of data values */ +[[deprecated]] int writeDataFile(std::string fname, int nch, short int *data); // mkdir -p path implemented by recursive calls