From 43941afe1911784e0c7beca1a494d0f3ddcdee2a Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 30 Jun 2022 22:36:45 -0400 Subject: [PATCH] Revert "follow-up 3" This reverts commit cd57dfa5ffa3a408f07b24b24e2c758301fed143. --- include/extern.h | 1 - sys/share/cppregex.cpp | 10 ---------- sys/share/pmatchregex.c | 6 ------ sys/share/posixregex.c | 6 ------ 4 files changed, 23 deletions(-) diff --git a/include/extern.h b/include/extern.h index ae6dab2ad..dcdffdbd5 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1832,7 +1832,6 @@ extern boolean regex_compile(const char *, struct nhregex *); extern const char *regex_error_desc(struct nhregex *); extern boolean regex_match(const char *, struct nhregex *); extern void regex_free(struct nhregex *); -extern void regex_at_exit(void); /* ### consoletty.c ### */ diff --git a/sys/share/cppregex.cpp b/sys/share/cppregex.cpp index 4da1528c6..ca7d7978f 100644 --- a/sys/share/cppregex.cpp +++ b/sys/share/cppregex.cpp @@ -63,13 +63,3 @@ extern "C" { delete re; } } - -void -regex_at_exit(void) -{ - if (cppregex_static_buffer != 0) { - free((genericptr_t) cppregex_static_buffer); - cppregex_static_buffer = (char *) 0; - } -} - diff --git a/sys/share/pmatchregex.c b/sys/share/pmatchregex.c index 289fb51fb..d04fdacc1 100644 --- a/sys/share/pmatchregex.c +++ b/sys/share/pmatchregex.c @@ -65,9 +65,3 @@ regex_free(struct nhregex *re) free((genericptr_t) re); } } - -void -regex_at_exit(void) -{ -} - diff --git a/sys/share/posixregex.c b/sys/share/posixregex.c index 4000364ba..37f16ada9 100644 --- a/sys/share/posixregex.c +++ b/sys/share/posixregex.c @@ -104,9 +104,3 @@ regex_free(struct nhregex *re) regfree(&re->re); free(re); } - -void -regex_at_exit(void) -{ -} -