Skip to content

Commit ff4e723

Browse files
committed
CA-557 Remove unused class member variable.
1 parent 74b8bc4 commit ff4e723

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

cpp/SourceVITA49.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ SourceVITA49_i::~SourceVITA49_i() {
6565

6666
if (data != NULL)
6767
free(data);
68-
if (array != NULL)
69-
free(array);
68+
// if (array != NULL)
69+
// free(array);
7070
}
7171

7272
void SourceVITA49_i::__constructor__() {
@@ -147,7 +147,7 @@ void SourceVITA49_i::initialize_values() {
147147

148148
droppedPacket = false;
149149
init = true;
150-
array = NULL;
150+
// array = NULL;
151151
_receiveThread = NULL;
152152
streamID.clear();
153153

@@ -170,9 +170,9 @@ void SourceVITA49_i::memoryManagement(int maxPacketLength) {
170170
free(data);
171171
data = (unsigned char*) malloc(CORBA_MAX_XFER_BYTES);
172172

173-
if (array != NULL)
174-
free(array);
175-
array = (char*) malloc(CORBA_MAX_XFER_BYTES);
173+
// if (array != NULL)
174+
// free(array);
175+
// array = (char*) malloc(CORBA_MAX_XFER_BYTES);
176176

177177
Bank2.clear();
178178
workQueue2.clear();
@@ -2077,7 +2077,8 @@ bool SourceVITA49_i::process_data_packet(std::vector<char> *packet) {
20772077
int length = 0;
20782078

20792079
if (_dataRef != BYTE_ORDER) {
2080-
standardDPacket->swapPayloadBytes(processingPayloadFormat, &array[0]);
2080+
// standardDPacket->swapPayloadBytes(processingPayloadFormat, &array[0]);
2081+
standardDPacket->swapPayloadBytes(processingPayloadFormat);
20812082
}
20822083

20832084
needed = transferSize - _writeIndex;

cpp/SourceVITA49.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class SourceVITA49_i : public SourceVITA49_base, public bulkio::InVITA49Port::Ca
284284
//////////
285285
// Data //
286286
//////////
287-
char* array;
287+
// char* array;
288288
bounded_buffer_deque_based< std::vector<char> *> Bank2;
289289
bool createMem;
290290
unsigned char *data;

0 commit comments

Comments
 (0)