Permalink
Browse files

removed unnecessary code

  • Loading branch information...
1 parent 9385d8a commit 68ecd4e02c54d9afe34c4a9b8b3389da314ea52e @psychs psychs committed Sep 13, 2011
Showing with 0 additions and 31 deletions.
  1. +0 −6 Classes/Library/AsyncSocket.h
  2. +0 −25 Classes/Library/AsyncSocket.m
@@ -648,10 +648,4 @@ typedef enum AsyncSocketError AsyncSocketError;
/* POSIX error */
+ (NSString*)posixErrorStringFromErrno:(int)code;
-/* A few common line separators, for use with the readDataToData:... methods. */
-+ (NSData *)CRLFData; // 0x0D0A
-+ (NSData *)CRData; // 0x0D
-+ (NSData *)LFData; // 0x0A
-+ (NSData *)ZeroData; // 0x00
-
@end
@@ -3843,29 +3843,4 @@ static void MyCFWriteStreamCallback (CFWriteStreamRef stream, CFStreamEventType
[pool release];
}
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#pragma mark Class Methods
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-// Return line separators.
-+ (NSData *)CRLFData
-{
- return [NSData dataWithBytes:"\x0D\x0A" length:2];
-}
-
-+ (NSData *)CRData
-{
- return [NSData dataWithBytes:"\x0D" length:1];
-}
-
-+ (NSData *)LFData
-{
- return [NSData dataWithBytes:"\x0A" length:1];
-}
-
-+ (NSData *)ZeroData
-{
- return [NSData dataWithBytes:"" length:1];
-}
-
@end

0 comments on commit 68ecd4e

Please sign in to comment.