aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-07 21:52:47 -0500
committerGitHub <noreply@github.com>2020-03-07 21:52:47 -0500
commita0d8caffb4f83e0e7219318fa08839ee93e653b8 (patch)
tree3c242c084c10793d1396d7caf7d8e7bce2c07f29 /ext/mixed
parentd022d61b1a66614e1837585afcb53a25253b643a (diff)
parent426c1534e7d740fa2c30488a64ad4fa6a382deed (diff)
Merge pull request #400 from toasted-nutbread/template-render-refactor
Template render refactor
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/core.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/mixed/js/core.js b/ext/mixed/js/core.js
index 0e22b9ac..0d50e915 100644
--- a/ext/mixed/js/core.js
+++ b/ext/mixed/js/core.js
@@ -175,21 +175,6 @@ function promiseTimeout(delay, resolveValue) {
return promise;
}
-function stringReplaceAsync(str, regex, replacer) {
- let match;
- let index = 0;
- const parts = [];
- while ((match = regex.exec(str)) !== null) {
- parts.push(str.substring(index, match.index), replacer(...match, match.index, str));
- index = regex.lastIndex;
- }
- if (parts.length === 0) {
- return Promise.resolve(str);
- }
- parts.push(str.substring(index));
- return Promise.all(parts).then((v) => v.join(''));
-}
-
/*
* Common events