From 19fcc192d728809f1470e4d6c54f88c1995bfa57 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 17 Feb 2012 18:17:10 +0100 Subject: [PATCH] Having a category for each delegate is not required anymore. This is thanks to XMPPMulticastDelegate. --- src/XMPPConnection.h | 3 --- src/XMPPConnection.m | 49 -------------------------------------------- src/XMPPRoster.h | 3 --- src/XMPPRoster.m | 11 ---------- 4 files changed, 66 deletions(-) diff --git a/src/XMPPConnection.h b/src/XMPPConnection.h index 02d8786..2beb672 100644 --- a/src/XMPPConnection.h +++ b/src/XMPPConnection.h @@ -363,6 +363,3 @@ - (XMPPMulticastDelegate*)XMPP_delegates; /// \endcond @end - -@interface OFObject (XMPPConnectionDelegate) -@end diff --git a/src/XMPPConnection.m b/src/XMPPConnection.m index e151ca9..165e1fa 100644 --- a/src/XMPPConnection.m +++ b/src/XMPPConnection.m @@ -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 diff --git a/src/XMPPRoster.h b/src/XMPPRoster.h index ce8d407..1aee13a 100644 --- a/src/XMPPRoster.h +++ b/src/XMPPRoster.h @@ -153,6 +153,3 @@ - (XMPPRosterItem*)XMPP_rosterItemWithXMLElement: (OFXMLElement*)element; /// \endcond @end - -@interface OFObject (XMPPRosterDelegate) -@end diff --git a/src/XMPPRoster.m b/src/XMPPRoster.m index 37736b3..472d0a6 100644 --- a/src/XMPPRoster.m +++ b/src/XMPPRoster.m @@ -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