]> git.kaiwu.me - nginx.git/commitdiff
Removed unused function ngx_regex_capture_count().
authorValentin Bartenev <vbart@nginx.com>
Tue, 6 Dec 2011 15:49:40 +0000 (15:49 +0000)
committerValentin Bartenev <vbart@nginx.com>
Tue, 6 Dec 2011 15:49:40 +0000 (15:49 +0000)
The function has been unused since r3326.

src/core/ngx_regex.c

index 984a28aa98334926ba5d490b6f28ee1dd32cee1a..af00f831926c4772209d80a7afeaf57beff921a4 100644 (file)
@@ -136,23 +136,6 @@ failed:
 }
 
 
-ngx_int_t
-ngx_regex_capture_count(ngx_regex_t *re)
-{
-    int  rc, n;
-
-    n = 0;
-
-    rc = pcre_fullinfo(re, NULL, PCRE_INFO_CAPTURECOUNT, &n);
-
-    if (rc < 0) {
-        return (ngx_int_t) rc;
-    }
-
-    return (ngx_int_t) n;
-}
-
-
 ngx_int_t
 ngx_regex_exec_array(ngx_array_t *a, ngx_str_t *s, ngx_log_t *log)
 {