From c0cc48b9dc6476ffa7eec19a5b3dbb3bdc53c74f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 26 Feb 2011 12:19:35 -0500 Subject: [PATCH] Remove some NSLog statements --- Source/NetworkCallbackController.h | 2 +- Source/NetworkCallbackController.mm | 4 ---- Source/NetworkConnection.mm | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/NetworkCallbackController.h b/Source/NetworkCallbackController.h index de6cc32..6aee8e4 100644 --- a/Source/NetworkCallbackController.h +++ b/Source/NetworkCallbackController.h @@ -28,7 +28,7 @@ class NetworkCallbackController // This object should be constructed on the thread which the streams are // to be scheduled on. It will hold a weak reference to the run loop on that // thread. - NetworkCallbackController(NetworkConnection* connection); + explicit NetworkCallbackController(NetworkConnection* connection); // Creates a socket and schedules it on the current run loop. void OpenConnection(NSUInteger port); diff --git a/Source/NetworkCallbackController.mm b/Source/NetworkCallbackController.mm index b2d79f2..73c032a 100644 --- a/Source/NetworkCallbackController.mm +++ b/Source/NetworkCallbackController.mm @@ -75,9 +75,7 @@ void NetworkCallbackController::OpenConnection(NSUInteger port) void NetworkCallbackController::CloseConnection() { if (socket_) { - NSLog(@"invalidating socket %d", close(CFSocketGetNative(socket_))); CFSocketInvalidate(socket_); - NSLog(@"socket is valid %d", CFSocketIsValid(socket_)); CFRelease(socket_); socket_ = NULL; } @@ -181,13 +179,11 @@ void NetworkCallbackController::OnReadStreamEvent(CFReadStreamRef stream, break; case kCFStreamEventErrorOccurred: - NSLog(@"%s error", __PRETTY_FUNCTION__); ReportError(CFReadStreamCopyError(stream)); UnscheduleReadStream(); break; case kCFStreamEventEndEncountered: - NSLog(@"%s end", __PRETTY_FUNCTION__); UnscheduleReadStream(); [connection_ socketDisconnected]; break; diff --git a/Source/NetworkConnection.mm b/Source/NetworkConnection.mm index 89b9a67..894b1d7 100644 --- a/Source/NetworkConnection.mm +++ b/Source/NetworkConnection.mm @@ -103,7 +103,6 @@ void PerformQuitSignal(void* info) CFRunLoopSourceInvalidate(quitSource_); CFRelease(quitSource_); quitSource_ = NULL; - NSLog(@"stopping network thread"); [pool release]; } -- 2.22.5