summaryrefslogtreecommitdiff
path: root/tests/Message_Queue_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Message_Queue_Test.cpp')
-rw-r--r--tests/Message_Queue_Test.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/Message_Queue_Test.cpp b/tests/Message_Queue_Test.cpp
index 3765e2020bd..d015be2581b 100644
--- a/tests/Message_Queue_Test.cpp
+++ b/tests/Message_Queue_Test.cpp
@@ -241,9 +241,6 @@ single_thread_performance_test (int queue_type = 0)
for (i = 0; i < messages; ++i)
{
- // There's got to be a better way to do this. <init> doesn't
- // delete any existing data block, so we do it explicitly.
- delete receive_block[i].data_block ();
receive_block[i].init (MAX_MESSAGE_SIZE);
// For VxWorks Message Queues, the receive block pointer must be
@@ -319,9 +316,6 @@ receiver (void *arg)
for (i = 0; i < messages; ++i)
{
- // There's got to be a better way to do this. <init> doesn't
- // delete any existing data block, so we do it explicitly.
- delete receive_block[i].data_block ();
receive_block[i].init (MAX_MESSAGE_SIZE);
// For VxWorks Message Queues, the receive block pointer must be