From 9b709859db5310444052d13ed8ebccec6ead1669 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sat, 11 Feb 2012 10:42:40 -0500 Subject: Actually remove the #ifdef OLD_COMPAT and NEW_COMPAT code To my knowledge, this hasn't been enabled by anyone in ages --- server/dispatch.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'server/dispatch.c') diff --git a/server/dispatch.c b/server/dispatch.c index 7851135..b591ec6 100644 --- a/server/dispatch.c +++ b/server/dispatch.c @@ -889,11 +889,6 @@ nack_cancel(ZNotice_t *notice, notice->z_uid.tv.tv_sec, notice->z_uid.tv.tv_usec)); } -/* for compatibility when sending subscription information to old clients */ -#ifdef OLD_COMPAT -#define OLD_ZEPHYR_VERSION "ZEPH0.0" -#endif /* OLD_COMPAT */ - /* Dispatch an HM_CTL notice. */ Code_t @@ -1008,14 +1003,6 @@ control_dispatch(ZNotice_t *notice, someone who has no subscriptions does NOT get a SERVNAK but rather an empty list. Note we must therefore check authentication inside subscr_sendlist */ -#ifdef OLD_COMPAT - /* only acknowledge if *not* old version; the old version - acknowledges the packet with the reply */ - if (strcmp(notice->z_version, OLD_ZEPHYR_VERSION) != 0) - ack(notice, who); -#else /* !OLD_COMPAT */ - ack(notice, who); -#endif /* OLD_COMPAT */ subscr_sendlist(notice, auth, who); return ZERR_NONE; } else if (!auth) { -- cgit v1.2.3