diff options
author | Karl Ramm <kcr@1ts.org> | 2012-02-11 10:42:40 -0500 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2012-02-11 10:42:40 -0500 |
commit | 9b709859db5310444052d13ed8ebccec6ead1669 (patch) | |
tree | 11c62867bdbbd660979b63c6ade1755fd586bbe7 /server/dispatch.c | |
parent | 8b3eae5da045bdf2997af372eab407aa7c59846b (diff) |
Actually remove the #ifdef OLD_COMPAT and NEW_COMPAT code
To my knowledge, this hasn't been enabled by anyone in ages
Diffstat (limited to 'server/dispatch.c')
-rw-r--r-- | server/dispatch.c | 13 |
1 files changed, 0 insertions, 13 deletions
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) { |