Revert "Adjust to new async API."

This reverts commit 6add878e280540ff5359704bed44bcc24c1e8be1.

The API has been changed back in ObjFW.

FossilOrigin-Name: 52008e00b1016a0073ce9bc325d7d2a7b736d6dbd2e9b5baa3e6ab34cb5cf5be
This commit is contained in:
Jonathan Schleifer 2012-11-08 15:57:50 +00:00
parent 9fbc9c9b30
commit 54b163ac6a

View file

@ -529,16 +529,14 @@
- (BOOL)connection: (OFTCPSocket*)connection
didReceiveISO88591Line: (OFString*)line
context: (id)context
exception: (OFException*)exception
{
if (line != nil) {
[self IRC_processLine: line];
[sock asyncReadLineWithTarget: self
selector: @selector(connection:
didReceiveLine:context:
exception:)
context: nil];
didReceiveLine:
exception:)];
}
return NO;
@ -546,7 +544,6 @@
- (BOOL)connection: (OFTCPSocket*)connection
didReceiveLine: (OFString*)line
context: (id)context
exception: (OFException*)exception
{
if (line != nil) {
@ -559,8 +556,7 @@
target: self
selector: @selector(connection:
didReceiveISO88591Line:
context:exception:)
context: nil];
exception:)];
return NO;
}
@ -569,8 +565,7 @@
{
[sock asyncReadLineWithTarget: self
selector: @selector(connection:didReceiveLine:
context:exception:)
context: nil];
exception:)];
}
- (void)dealloc