Przeglądaj źródła

Removed duplicated KVO calls for readyState

The system implicitly supports KVO for this property.
Daniel Blakemore 9 lat temu
rodzic
commit
8d23062298
1 zmienionych plików z 0 dodań i 2 usunięć
  1. 0 2
      SocketRocket/SRWebSocket.m

+ 0 - 2
SocketRocket/SRWebSocket.m

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