From 2ee8c9dcd18aa6c9ebd5e05f9fef2863d7ddbe88 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 17 May 2015 15:06:56 -0400 Subject: [PATCH] Remove unused -[ProtocolClient shouldSendMessage]. --- Source/ProtocolClient.h | 2 +- Source/ProtocolClient.m | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Source/ProtocolClient.h b/Source/ProtocolClient.h index a2eb7e5..83bb7d1 100644 --- a/Source/ProtocolClient.h +++ b/Source/ProtocolClient.h @@ -24,7 +24,7 @@ // debugger engine and receives XML packets in response. This class ensures // proper sequencing of the messages. @interface ProtocolClient : NSObject { - //@private + @private MessageQueue* _messageQueue; NSRecursiveLock* _lock; diff --git a/Source/ProtocolClient.m b/Source/ProtocolClient.m index 0136bfe..5a0fa5f 100644 --- a/Source/ProtocolClient.m +++ b/Source/ProtocolClient.m @@ -130,15 +130,6 @@ [_delegate debuggerEngineDisconnected:self]; } -// If the write stream is ready, the delegate controls whether or not the next -// pending message should be sent via the result of this method. -- (BOOL)shouldSendMessage { - [_lock lock]; - BOOL r = _lastReadID >= _lastWrittenID; - [_lock unlock]; - return r; -} - // Callback for when a message has been sent. - (void)messageQueue:(MessageQueue*)queue didSendMessage:(NSString*)message { -- 2.22.5