Эх сурвалжийг харах

Removed duplicated KVO calls for readyState

The system implicitly supports KVO for this property.
Daniel Blakemore 9 жил өмнө
parent
commit
8d23062298

+ 0 - 2
SocketRocket/SRWebSocket.m

@@ -375,10 +375,8 @@ static __strong NSData *CRLFCRLF;
 
 - (void)setReadyState:(SRReadyState)aReadyState;
 {
-    [self willChangeValueForKey:@"readyState"];
     assert(aReadyState > _readyState);
     _readyState = aReadyState;
-    [self didChangeValueForKey:@"readyState"];
 }
 
 #endif