From 82140113d90704c2d49258586decf8f8b471b7e3 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 15 Jul 2024 20:22:52 +0100 Subject: [PATCH] Remove unused `parsers.entities.propertyCurly()` Follows-up a38f8a1eb7beed589d2fa734fcf411cf4461d231, which introduced this as part of implementing property accessors. The method was not used there, and hasn't been used elsewhere since then either. Ref https://github.com/less/less.js/pull/3163. --- packages/less/src/less/parser/parser.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/less/src/less/parser/parser.js b/packages/less/src/less/parser/parser.js index 59aa2eef4..02a528186 100644 --- a/packages/less/src/less/parser/parser.js +++ b/packages/less/src/less/parser/parser.js @@ -678,15 +678,6 @@ const Parser = function Parser(context, imports, fileInfo, currentIndex) { } }, - // A property entity useing the protective {} e.g. ${prop} - propertyCurly: function () { - let curly; - const index = parserInput.i; - - if (parserInput.currentChar() === '$' && (curly = parserInput.$re(/^\$\{([\w-]+)\}/))) { - return new(tree.Property)(`$${curly[1]}`, index + currentIndex, fileInfo); - } - }, // // A Hexadecimal color //