From 95df1a4c254b3df62227eb25f4686a4747c8f323 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Wed, 7 Nov 2012 09:18:12 +1100 Subject: [PATCH] Remove a useless message copy --- ext/libclementine-common/core/workerpool.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ext/libclementine-common/core/workerpool.h b/ext/libclementine-common/core/workerpool.h index b4ac19e9b..906c8dc73 100644 --- a/ext/libclementine-common/core/workerpool.h +++ b/ext/libclementine-common/core/workerpool.h @@ -356,11 +356,7 @@ typename WorkerPool::ReplyType* WorkerPool::SendMessageWithReply(MessageType* message) { ReplyType* reply = NewReply(message); - // Copy the message - MessageType copy; - copy.MergeFrom(*message); - - // Add the copy to the queue + // Add the pending reply to the queue { QMutexLocker l(&message_queue_mutex_); message_queue_.enqueue(reply);