Skip to content

Commit 2b716d1

Browse files
committed
Remove unused constants
1 parent 39d1360 commit 2b716d1

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

Source/Processors/RecordNode/BinaryFormat/BinaryRecording.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
BinaryRecording::BinaryRecording()
3838
{
3939
m_bufferSize = MAX_BUFFER_SIZE;
40-
m_scaledBuffer.malloc (MAX_BUFFER_SIZE);
4140
m_intBuffer.malloc (MAX_BUFFER_SIZE);
4241
m_sampleNumberBuffer.malloc (MAX_BUFFER_SIZE);
4342

@@ -606,7 +605,6 @@ void BinaryRecording::closeFiles()
606605
m_spikeChannelIndexes.clear();
607606
m_spikeFileIndexes.clear();
608607

609-
m_scaledBuffer.malloc (MAX_BUFFER_SIZE);
610608
m_intBuffer.malloc (MAX_BUFFER_SIZE);
611609
m_sampleNumberBuffer.malloc (MAX_BUFFER_SIZE);
612610
m_bufferSize = MAX_BUFFER_SIZE;
@@ -648,7 +646,6 @@ void BinaryRecording::writeContinuousData (int writeChannel,
648646
if (size > m_bufferSize) //shouldn't happen, but if does, this prevents crash...
649647
{
650648
LOGE ("BinaryRecording::writeContinuousData: Write buffer overrun, resizing from: ", m_bufferSize, " to: ", size);
651-
m_scaledBuffer.malloc (size);
652649
m_intBuffer.malloc (size);
653650
m_sampleNumberBuffer.malloc (size);
654651
m_bufferSize = size;
@@ -761,7 +758,6 @@ void BinaryRecording::writeSpike (int electrodeIndex, const Spike* spike)
761758
{
762759
LOGE ("BinaryRecording::writeSpike: Write buffer overrun, resizing to ", totalSamples);
763760
m_bufferSize = totalSamples;
764-
m_scaledBuffer.malloc (totalSamples);
765761
m_intBuffer.malloc (totalSamples);
766762
}
767763

@@ -805,7 +801,7 @@ void BinaryRecording::writeContinuousDataBatch (const int* writeChannels,
805801
int newSamples = jmax (numSamples, m_batchBufferSamples);
806802
int newChannels = jmax (numChannels, m_batchBufferChannels);
807803

808-
LOGD ("BinaryRecording::writeContinuousDataBatch: Resizing batch buffer to ",
804+
LOGC ("BinaryRecording::writeContinuousDataBatch: Resizing batch buffer to ",
809805
newChannels, " channels x ", newSamples, " samples");
810806

811807
m_batchIntBuffer.malloc (newSamples * newChannels);

Source/Processors/RecordNode/BinaryFormat/BinaryRecording.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,12 @@ class BinaryRecording : public RecordEngine
108108

109109
bool m_saveTTLWords { true };
110110

111-
HeapBlock<float> m_scaledBuffer;
112111
HeapBlock<int16> m_intBuffer;
113112
HeapBlock<int64> m_sampleNumberBuffer;
114113
int m_bufferSize;
115114
int m_syncTimestampBufferSize;
116115

117116
// Batch conversion buffers
118-
static const int MAX_BATCH_CHANNELS = 512; // Maximum channels per batch
119117
std::vector<float> m_batchScaleFactors;
120118
std::vector<int16*> m_batchIntBufferPtrs;
121119
HeapBlock<int16> m_batchIntBuffer; // Separate buffer for batch writes

Source/Processors/RecordNode/RecordNode.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,10 @@
4141

4242
#include "DiskMonitor/DiskSpaceChecker.h"
4343

44-
#define WRITE_BLOCK_LENGTH 1024
4544
#define DATA_BUFFER_NBLOCKS 300
4645
#define EVENT_BUFFER_NEVENTS 200000
4746
#define SPIKE_BUFFER_NSPIKES 200000
4847

49-
#define NIDAQ_BIT_VOLTS 0.001221f
50-
#define NPX_BIT_VOLTS 0.195f
51-
#define MAX_BUFFER_SIZE 40960
52-
#define CHANNELS_PER_THREAD 384
53-
5448
/**
5549
Class used internally by the RecordNode to count the number of incoming events
5650
Primarily useful for debugging purposes

0 commit comments

Comments
 (0)