From 71571c5446e9ebf9e6dc166d833ff50bde7ad94d Mon Sep 17 00:00:00 2001 From: "andrew@webrtc.org" Date: Wed, 21 Dec 2011 18:30:59 +0000 Subject: [PATCH] Remove unneeded variables from windows UDP. TEST=build on Windows. Review URL: http://webrtc-codereview.appspot.com/329013 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1274 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../udp_transport/source/udp_socket2_manager_windows.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/modules/udp_transport/source/udp_socket2_manager_windows.cc b/src/modules/udp_transport/source/udp_socket2_manager_windows.cc index 4003b54a4..5b6ee3f40 100644 --- a/src/modules/udp_transport/source/udp_socket2_manager_windows.cc +++ b/src/modules/udp_transport/source/udp_socket2_manager_windows.cc @@ -64,9 +64,7 @@ UdpSocket2ManagerWindows::~UdpSocket2ManagerWindows() StopWorkerThreads(); // All threads are stopped. Safe to delete them. - ListItem* pItem = NULL; - UdpSocket2WorkerWindows* pWorker; - while((pItem = _workerThreadsList.First()) != NULL) + while(_workerThreadsList.First() != NULL) { _workerThreadsList.PopFront(); } @@ -211,9 +209,7 @@ bool UdpSocket2ManagerWindows::StartWorkerThreads() "creating work threads", _managerNumber); // Delete worker threads. - ListItem* pItem = NULL; - UdpSocket2WorkerWindows* pWorker; - while((pItem = _workerThreadsList.First()) != NULL) + while(_workerThreadsList.First() != NULL) { _workerThreadsList.PopFront(); }