Remove unused source_id

This commit is contained in:
2020-05-25 13:48:53 +02:00
parent 360e476afb
commit d355299f5a
2 changed files with 4 additions and 13 deletions
+2 -5
View File
@@ -2,17 +2,15 @@
#define SF_DAQ_BUFFER_REPLAYH5READER_HPP
#include <string>
#include "formats.hpp"
#include <H5Cpp.h>
#include <memory>
#include "buffer_config.hpp"
#include "formats.hpp"
class ReplayH5Reader {
const std::string device_;
const std::string channel_name_;
const uint16_t source_id_;
H5::H5File current_file_;
std::string current_filename_;
@@ -29,8 +27,7 @@ class ReplayH5Reader {
public:
ReplayH5Reader(
const std::string device,
const std::string channel_name,
const uint16_t source_id);
const std::string channel_name);
virtual ~ReplayH5Reader();
void close_file();
+2 -8
View File
@@ -1,10 +1,6 @@
#include "ReplayH5Reader.hpp"
#include "BufferUtils.hpp"
#include <iostream>
#include <chrono>
#include <cstring>
#include "date.h"
using namespace std;
using namespace core_buffer;
@@ -67,11 +63,9 @@ void ReplayH5Reader::load_buffers(const uint64_t pulse_id)
ReplayH5Reader::ReplayH5Reader(
const string device,
const string channel_name,
const uint16_t source_id) :
const string channel_name) :
device_(device),
channel_name_(channel_name),
source_id_(source_id)
channel_name_(channel_name)
{
m_buffer_ = new ModuleFrame[REPLAY_READ_BUFFER_SIZE];
f_buffer_ = new char[MODULE_N_BYTES * REPLAY_READ_BUFFER_SIZE];