[PATCH] Remove src/core/ngx_crc.h, unused since nginx-0.1.13

Piotr Sikora piotrsikora at google.com
Sat Oct 24 23:26:09 UTC 2015


# HG changeset patch
# User Piotr Sikora <piotrsikora at google.com>
# Date 1445649693 25200
#      Fri Oct 23 18:21:33 2015 -0700
# Node ID 8c25beef3cc4f7d3b88c8718bd24f02b1bc39d35
# Parent  a8be1943bde3ea151ade97149856684db4066fe3
Remove src/core/ngx_crc.h, unused since nginx-0.1.13.

Signed-off-by: Piotr Sikora <piotrsikora at google.com>

diff -r a8be1943bde3 -r 8c25beef3cc4 auto/sources
--- a/auto/sources
+++ b/auto/sources
@@ -22,7 +22,6 @@ CORE_DEPS="src/core/nginx.h \
            src/core/ngx_parse_time.h \
            src/core/ngx_inet.h \
            src/core/ngx_file.h \
-           src/core/ngx_crc.h \
            src/core/ngx_crc32.h \
            src/core/ngx_murmurhash.h \
            src/core/ngx_md5.h \
diff -r a8be1943bde3 -r 8c25beef3cc4 src/core/ngx_core.h
--- a/src/core/ngx_core.h
+++ b/src/core/ngx_core.h
@@ -64,7 +64,6 @@ typedef void (*ngx_connection_handler_pt
 #include <ngx_list.h>
 #include <ngx_hash.h>
 #include <ngx_file.h>
-#include <ngx_crc.h>
 #include <ngx_crc32.h>
 #include <ngx_murmurhash.h>
 #if (NGX_PCRE)
diff -r a8be1943bde3 -r 8c25beef3cc4 src/core/ngx_crc.h
--- a/src/core/ngx_crc.h
+++ /dev/null
@@ -1,39 +0,0 @@
-
-/*
- * Copyright (C) Igor Sysoev
- * Copyright (C) Nginx, Inc.
- */
-
-
-#ifndef _NGX_CRC_H_INCLUDED_
-#define _NGX_CRC_H_INCLUDED_
-
-
-#include <ngx_config.h>
-#include <ngx_core.h>
-
-
-/* 32-bit crc16 */
-
-static ngx_inline uint32_t
-ngx_crc(u_char *data, size_t len)
-{
-    uint32_t  sum;
-
-    for (sum = 0; len; len--) {
-
-        /*
-         * gcc 2.95.2 x86 and icc 7.1.006 compile
-         * that operator into the single "rol" opcode,
-         * msvc 6.0sp2 compiles it into four opcodes.
-         */
-        sum = sum >> 1 | sum << 31;
-
-        sum += *data++;
-    }
-
-    return sum;
-}
-
-
-#endif /* _NGX_CRC_H_INCLUDED_ */



More information about the nginx-devel mailing list