Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
matheo committed Oct 23, 2023
1 parent 7cdba96 commit 9ab7aa2
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/AssetMapper/SassPublicPathAssetPathResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

class SassPublicPathAssetPathResolver implements PublicAssetsPathResolverInterface
{
public function __construct(private readonly PublicAssetsPathResolverInterface $decorator)
{
}
public function __construct(
private readonly PublicAssetsPathResolverInterface $decorator
) {}

public function resolvePublicPath(string $logicalPath): string
{
Expand All @@ -27,15 +27,4 @@ public function resolvePublicPath(string $logicalPath): string

return $path;
}

public function getPublicFilesystemPath(): string
{
$path = $this->decorator->getPublicFilesystemPath();

if (str_contains($path, '.scss')) {
return str_replace('.scss', '.css', $path);
}

return $path;
}
}

0 comments on commit 9ab7aa2

Please sign in to comment.