@@ -251,7 +251,9 @@ namespace Sass {
251
251
// ##########################################################################
252
252
// Helper function to copy extension between maps
253
253
// ##########################################################################
254
- void Extender::mapCopyExts (
254
+ // Seems only relevant for sass 4.0 modules
255
+ // ##########################################################################
256
+ /* void mapCopyExts(
255
257
ExtSelExtMap& dest,
256
258
const ExtSelExtMap& source)
257
259
{
@@ -271,7 +273,7 @@ namespace Sass {
271
273
}
272
274
}
273
275
}
274
- }
276
+ } */
275
277
// EO mapCopyExts
276
278
277
279
// ##########################################################################
@@ -353,11 +355,13 @@ namespace Sass {
353
355
auto existingExtensions = extensionsByExtender.find (target);
354
356
if (existingExtensions != extensionsByExtender.end ()) {
355
357
if (hasExistingExtensions && !existingExtensions->second .empty ()) {
356
- auto additionalExtensions =
358
+ // Seems only relevant for sass 4.0 modules
359
+ // auto additionalExtensions =
357
360
extendExistingExtensions (existingExtensions->second , newExtensionsByTarget);
358
- if (!additionalExtensions.empty ()) {
361
+ // Seems only relevant for sass 4.0 modules
362
+ /* if (!additionalExtensions.empty()) {
359
363
mapCopyExts(newExtensionsByTarget, additionalExtensions);
360
- }
364
+ } */
361
365
}
362
366
}
363
367
@@ -455,6 +459,8 @@ namespace Sass {
455
459
}
456
460
else {
457
461
sources.insert (complex, withExtender);
462
+ /*
463
+ // Seems only relevant for sass 4.0 modules
458
464
for (auto& component : complex->elements()) {
459
465
if (auto compound = component->getCompound()) {
460
466
for (auto& simple : compound->elements()) {
@@ -465,15 +471,19 @@ namespace Sass {
465
471
if (newExtensions.find(extension.target) != newExtensions.end()) {
466
472
additionalExtensions[extension.target].insert(complex, withExtender);
467
473
}
474
+ */
468
475
}
469
476
}
470
477
471
478
// If [selectors] doesn't contain [extension.extender],
472
479
// for example if it was replaced due to :not() expansion,
473
480
// we must get rid of the old version.
481
+ /*
482
+ // Seems only relevant for sass 4.0 modules
474
483
if (!containsExtension) {
475
484
sources.erase(extension.extender);
476
485
}
486
+ */
477
487
478
488
}
479
489
0 commit comments