Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Oct 21, 2023
1 parent 49e2ad4 commit f4fe99c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/File/Content/Lines.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ public static function of(Sequence $lines): self
return new self($lines);
}

/**
* @psalm-pure
*/
public static function ofContent(string $content): self
{
return new self(
Str::of($content)
->split("\n")
->map(static fn($line) => Line::fromStream($line)),
);
}

public function foreach(callable $function): SideEffect
{
return $this->lines->foreach($function);
Expand Down

0 comments on commit f4fe99c

Please sign in to comment.