summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/path/_util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/path/_util.ts')
-rw-r--r--ext/node/polyfills/path/_util.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/node/polyfills/path/_util.ts b/ext/node/polyfills/path/_util.ts
index ea2afd873..fcf32d55c 100644
--- a/ext/node/polyfills/path/_util.ts
+++ b/ext/node/polyfills/path/_util.ts
@@ -114,18 +114,3 @@ export function _format(
if (dir === pathObject.root) return dir + base;
return dir + sep + base;
}
-
-const WHITESPACE_ENCODINGS: Record<string, string> = {
- "\u0009": "%09",
- "\u000A": "%0A",
- "\u000B": "%0B",
- "\u000C": "%0C",
- "\u000D": "%0D",
- "\u0020": "%20",
-};
-
-export function encodeWhitespace(string: string): string {
- return string.replaceAll(/[\s]/g, (c) => {
- return WHITESPACE_ENCODINGS[c] ?? c;
- });
-}