diff --git a/core-buffer/include/SFWriter.hpp b/core-buffer/include/SFWriter.hpp index 5ea6900..b8fd593 100644 --- a/core-buffer/include/SFWriter.hpp +++ b/core-buffer/include/SFWriter.hpp @@ -20,9 +20,6 @@ class SFWriter { H5::DataSet daq_rec_dataset_; H5::DataSet n_received_packets_dataset_; - std::unique_ptr image_buffer_; - size_t image_buffer_count_; - public: SFWriter( const std::string& output_file, diff --git a/core-buffer/src/SFWriter.cpp b/core-buffer/src/SFWriter.cpp index 5d16254..a7bd827 100644 --- a/core-buffer/src/SFWriter.cpp +++ b/core-buffer/src/SFWriter.cpp @@ -15,8 +15,7 @@ SFWriter::SFWriter( const size_t n_modules) : n_frames_(n_frames), n_modules_(n_modules), - current_write_index_(0), - image_buffer_count_(0) + current_write_index_(0) { file_ = H5::H5File(output_file, H5F_ACC_TRUNC); @@ -58,10 +57,6 @@ SFWriter::SFWriter( "n_received_packets", H5::PredType::NATIVE_UINT16, metadata_dataspace); - - image_buffer_ = make_unique( - n_modules_ * MODULE_N_BYTES * WRITER_BUFFER_SIZE); - image_buffer_count_ = 0; } SFWriter::~SFWriter() @@ -108,8 +103,8 @@ void SFWriter::write(shared_ptr metadata, char* data) { H5P_DEFAULT, 0, offset, - MODULE_N_BYTES * n_modules_ * WRITER_BUFFER_SIZE, - image_buffer_.get())) + MODULE_N_BYTES * n_modules_, + data)) { stringstream error_message; using namespace date;