Welcome! Log In Create A New Profile

Advanced

[njs] Removed unused regular expression API.

Dmitry Volyntsev
November 09, 2021 01:06PM
details: https://hg.nginx.org/njs/rev/2b07f8810d31
branches:
changeset: 1741:2b07f8810d31
user: Dmitry Volyntsev <xeioex@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,
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Removed unused regular expression API.

Dmitry Volyntsev 268 November 09, 2021 01:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready