]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove OLD_CODE
authorwessels <>
Sat, 11 Jan 1997 01:48:42 +0000 (01:48 +0000)
committerwessels <>
Sat, 11 Jan 1997 01:48:42 +0000 (01:48 +0000)
src/acl.cc

index 503551cbe4a2f399360efaa1ef8147757cda38c1..762d2541595060e91a56c490ac764c0368cad7a5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: acl.cc,v 1.71 1996/12/20 23:45:35 wessels Exp $
+ * $Id: acl.cc,v 1.72 1997/01/10 18:48:42 wessels Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -280,22 +280,6 @@ aclParseIpList(void)
            memset(addr2, 0, 256);
            memset(mask, 0, 256);
 
-#ifdef OLD_CODE
-           /* This breaks on "www-cache.uninett.no" because of the dash */
-           /* Split the adress in addr1-addr2/mask */
-           strncpy(addr1, p, strcspn(p, "-/"));
-           p += strcspn(p, "-/");
-           if (*p == '-') {
-               p++;
-               strncpy(addr2, p, strcspn(p, "/"));
-               p += strcspn(p, "/");
-           }
-           if (*p == '/') {
-               p++;
-               strcpy(mask, p);
-           }
-#endif
-#ifndef NEW_CODE
            for (;;) {
                if (sscanf(t, "%[0-9.]-%[0-9.]/%[0-9.]", addr1, addr2, mask) == 3)
                    break;
@@ -324,7 +308,7 @@ aclParseIpList(void)
                debug(28, 0, "aclParseIpList: Bad host/IP: '%s'\n", t);
                break;
            }
-#endif
+
            /* Decode addr1 */
            if (!decode_addr(addr1, &q->addr1, &q->mask)) {
                debug(28, 0, "%s line %d: %s\n",