From a851391d095472d9cd1ff5a05083264542e9494d Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 27 Feb 2023 09:21:41 -0500 Subject: [PATCH] url: remove unused `kFormat` from url PR-URL: https://github.com/nodejs/node/pull/46867 Reviewed-By: Matteo Collina Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Benjamin Gruenbaum Reviewed-By: Filip Skokan --- lib/internal/url.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index 3b61f432b91dad..4f42cb1dedca8d 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -101,7 +101,6 @@ const FORWARD_SLASH = /\//g; const context = Symbol('context'); const searchParams = Symbol('query'); -const kFormat = Symbol('format'); const updateActions = { kProtocol: 0, @@ -794,7 +793,6 @@ class URL { } ObjectDefineProperties(URL.prototype, { - [kFormat]: { __proto__: null, configurable: false, writable: false }, [SymbolToStringTag]: { __proto__: null, configurable: true, value: 'URL' }, toString: kEnumerableProperty, href: kEnumerableProperty,