File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
src/Symfony/Component/AssetMapper/ImportMap/Resolver Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -286,26 +286,6 @@ private function fetchPackageRequirementsFromImports(string $content): array
286
286
return $ dependencies ;
287
287
}
288
288
289
- /**
290
- * Finds the url() entries in the CSS file that reference files.
291
- *
292
- * @return string[]
293
- */
294
- private function findCssUrlFiles (string $ content ): array
295
- {
296
- // imports from jsdelivr follow a predictable format
297
- preg_match_all (CssAssetUrlCompiler::ASSET_URL_PATTERN , $ content , $ matches );
298
- $ dependencies = [];
299
- foreach ($ matches [2 ] as $ index => $ packageName ) {
300
- $ version = $ matches [3 ][$ index ] ?: null ;
301
- $ packageName .= $ matches [4 ][$ index ]; // add the path if any
302
-
303
- $ dependencies [] = new PackageRequireOptions ($ packageName , $ version );
304
- }
305
-
306
- return $ dependencies ;
307
- }
308
-
309
289
/**
310
290
* Parses the very specific import syntax used by jsDelivr.
311
291
*
You can’t perform that action at this time.
0 commit comments