2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-03 05:15:53 +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:
Lioncash 2020-04-05 09:22:25 -04:00
parent c48303c2c2
commit 1a031f54c4

View File

@ -7,7 +7,6 @@
namespace hecl {
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) {
/* Tokenize Path */