1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

regex: remove undocumented deprecated calls, optimize speed and memory usage (#7582)

This commit is contained in:
penguindark
2020-12-26 21:08:56 +01:00
committed by GitHub
parent 13b14ecead
commit b7f4e824df
2 changed files with 21 additions and 35 deletions

View File

@@ -32,12 +32,6 @@ pub fn new() RE {
return re
}
// new_regex_by_size create a RE of large size, mult specify the scale factor of the memory that will be allocated
[deprecated]
pub fn new_by_size(mult int) RE {
return impl_new_regex_by_size(mult)
}
// regex_opt create new RE object from RE pattern string
pub fn regex_opt(pattern string) ?RE {
// init regex