Skip to content

Commit cd4b86b

Browse files
committed
去除部分无效代码
1 parent 9ba6d8f commit cd4b86b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

regex.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
#include <regex>
2222
#include <covscript/cni.hpp>
2323
#include <covscript/extension.hpp>
24-
#include <covscript/extensions/char.hpp>
25-
#include <covscript/extensions/array.hpp>
26-
#include <covscript/extensions/string.hpp>
2724

2825
static cs::extension regex_ext;
2926
static cs::extension regex_result_ext;
@@ -123,9 +120,6 @@ namespace regex_cs_ext {
123120

124121
void init()
125122
{
126-
char_cs_ext::init();
127-
array_cs_ext::init();
128-
string_cs_ext::init();
129123
regex_ext.add_var("result", var::make_protect<extension_t>(regex_result_ext_shared));
130124
regex_ext.add_var("build", var::make_protect<callable>(cni(build)));
131125
regex_ext.add_var("match", var::make_protect<callable>(cni(match)));

0 commit comments

Comments
 (0)