[Lldb-commits] [lldb] r202281 - remove useless declaration

Sylvestre Ledru sylvestre at debian.org
Wed Feb 26 09:28:22 PST 2014


Author: sylvestre
Date: Wed Feb 26 11:28:21 2014
New Revision: 202281

URL: http://llvm.org/viewvc/llvm-project?rev=202281&view=rev
Log:
remove useless declaration

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp?rev=202281&r1=202280&r2=202281&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp Wed Feb 26 11:28:21 2014
@@ -550,7 +550,6 @@ GDBRemoteCommunicationClient::SendPacket
     PacketResult packet_result = PacketResult::ErrorSendFailed;
     Mutex::Locker locker;
     Log *log (ProcessGDBRemoteLog::GetLogIfAllCategoriesSet (GDBR_LOG_PROCESS));
-    size_t response_len = 0;
     if (GetSequenceMutex (locker))
     {
         packet_result = SendPacketAndWaitForResponseNoLock (payload, payload_length, response);
@@ -588,7 +587,6 @@ GDBRemoteCommunicationClient::SendPacket
 
                             // Swap the response buffer to avoid malloc and string copy
                             response.GetStringRef().swap (m_async_response.GetStringRef());
-                            response_len = response.GetStringRef().size();
                             packet_result = m_async_result;
                         }
                         else





More information about the lldb-commits mailing list