mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-03 07:55:52 +00:00
ProjectPath: Remove unused file-scope std::regex instance
Same behavior, minus an unnecessary heap allocation on program start.
This commit is contained in:
parent
c48303c2c2
commit
1a031f54c4
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
namespace hecl {
|
namespace hecl {
|
||||||
static const SystemRegex regPATHCOMP(_SYS_STR("[/\\\\]*([^/\\\\]+)"), SystemRegex::ECMAScript | SystemRegex::optimize);
|
static const SystemRegex regPATHCOMP(_SYS_STR("[/\\\\]*([^/\\\\]+)"), SystemRegex::ECMAScript | SystemRegex::optimize);
|
||||||
static const SystemRegex regDRIVELETTER(_SYS_STR("^([^/]*)/"), SystemRegex::ECMAScript | SystemRegex::optimize);
|
|
||||||
|
|
||||||
static SystemString CanonRelPath(SystemStringView path) {
|
static SystemString CanonRelPath(SystemStringView path) {
|
||||||
/* Tokenize Path */
|
/* Tokenize Path */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user