Skip to content

Commit

Permalink
Having a category for each delegate is not required anymore.
Browse files Browse the repository at this point in the history
This is thanks to XMPPMulticastDelegate.
  • Loading branch information
Midar committed Feb 17, 2012
1 parent d8dbb5a commit 19fcc19
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 66 deletions.
3 changes: 0 additions & 3 deletions src/XMPPConnection.h
Expand Up @@ -363,6 +363,3 @@
- (XMPPMulticastDelegate*)XMPP_delegates;
/// \endcond
@end

@interface OFObject (XMPPConnectionDelegate) <XMPPConnectionDelegate>
@end
49 changes: 0 additions & 49 deletions src/XMPPConnection.m
Expand Up @@ -1105,52 +1105,3 @@ - (XMPPMulticastDelegate*)XMPP_delegates
return delegates;
}
@end

@implementation OFObject (XMPPConnectionDelegate)
- (void)connection: (XMPPConnection*)connection
didReceiveElement: (OFXMLElement*)element
{
}

- (void)connection: (XMPPConnection*)connection
didSendElement: (OFXMLElement*)element
{
}

- (void)connectionWasAuthenticated: (XMPPConnection*)connection
{
}

- (void)connection: (XMPPConnection*)connection
wasBoundToJID: (XMPPJID*)JID
{
}

- (BOOL)connection: (XMPPConnection*)connection
didReceiveIQ: (XMPPIQ*)iq
{
return NO;
}

- (void)connection: (XMPPConnection*)connection
didReceivePresence: (XMPPPresence*)presence
{
}

- (void)connection: (XMPPConnection*)connection
didReceiveMessage: (XMPPMessage*)message
{
}

- (void)connectionWasClosed: (XMPPConnection*)connection
{
}

- (void)connectionWillUpgradeToTLS: (XMPPConnection*)connection
{
}

- (void)connectionDidUpgradeToTLS: (XMPPConnection*)connection
{
}
@end
3 changes: 0 additions & 3 deletions src/XMPPRoster.h
Expand Up @@ -153,6 +153,3 @@
- (XMPPRosterItem*)XMPP_rosterItemWithXMLElement: (OFXMLElement*)element;
/// \endcond
@end

@interface OFObject (XMPPRosterDelegate) <XMPPRosterDelegate>
@end
11 changes: 0 additions & 11 deletions src/XMPPRoster.m
Expand Up @@ -353,14 +353,3 @@ - (void)XMPP_handleInitialRosterForConnection: (XMPPConnection*)connection_
withObject: self];
}
@end

@implementation OFObject (XMPPRosterDelegate)
- (void)rosterWasReceived: (XMPPRoster*)roster
{
}

- (void)roster: (XMPPRoster*)roster
didReceiveRosterItem: (XMPPRosterItem*)rosterItem
{
}
@end

0 comments on commit 19fcc19

Please sign in to comment.