[njs] Removed unused regular expression API.
Dmitry Volyntsev
xeioex at nginx.com
Tue Nov 9 18:02:32 UTC 2021
details: https://hg.nginx.org/njs/rev/2b07f8810d31
branches:
changeset: 1741:2b07f8810d31
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Tue Nov 09 17:59:58 2021 +0000
description:
Removed unused regular expression API.
diffstat:
src/njs_pcre.c | 14 --------------
src/njs_regex.h | 2 --
2 files changed, 0 insertions(+), 16 deletions(-)
diffs (36 lines):
diff -r 384e1bb55a33 -r 2b07f8810d31 src/njs_pcre.c
--- a/src/njs_pcre.c Tue Nov 09 17:59:46 2021 +0000
+++ b/src/njs_pcre.c Tue Nov 09 17:59:58 2021 +0000
@@ -170,20 +170,6 @@ njs_regex_is_valid(njs_regex_t *regex)
}
-njs_uint_t
-njs_regex_ncaptures(njs_regex_t *regex)
-{
- return regex->ncaptures;
-}
-
-
-njs_uint_t
-njs_regex_backrefs(njs_regex_t *regex)
-{
- return regex->backrefmax;
-}
-
-
njs_int_t
njs_regex_named_captures(njs_regex_t *regex, njs_str_t *name, int n)
{
diff -r 384e1bb55a33 -r 2b07f8810d31 src/njs_regex.h
--- a/src/njs_regex.h Tue Nov 09 17:59:46 2021 +0000
+++ b/src/njs_regex.h Tue Nov 09 17:59:58 2021 +0000
@@ -30,8 +30,6 @@ NJS_EXPORT njs_regex_context_t *
NJS_EXPORT njs_int_t njs_regex_compile(njs_regex_t *regex, u_char *source,
size_t len, njs_uint_t options, njs_regex_context_t *ctx);
NJS_EXPORT njs_bool_t njs_regex_is_valid(njs_regex_t *regex);
-NJS_EXPORT njs_uint_t njs_regex_ncaptures(njs_regex_t *regex);
-NJS_EXPORT njs_uint_t njs_regex_backrefs(njs_regex_t *regex);
NJS_EXPORT njs_int_t njs_regex_named_captures(njs_regex_t *regex,
njs_str_t *name, int n);
NJS_EXPORT njs_regex_match_data_t *njs_regex_match_data(njs_regex_t *regex,
More information about the nginx-devel
mailing list