Skip to content

Commit 679dfd7

Browse files
committed
remove dead code
1 parent 585739d commit 679dfd7

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/Read.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Innmind\Immutable\{
1111
Sequence,
1212
Attempt,
13-
Maybe,
1413
Monoid\Concat,
1514
};
1615

@@ -44,17 +43,6 @@ public function __invoke(Server $server): Attempt
4443
->map(static fn($line) => Job::attempt($line->toString())),
4544
)
4645
->flatMap(self::parse(...));
47-
48-
/**
49-
* @psalm-suppress NamedArgumentNotAllowed
50-
* @var Maybe<Sequence<Job>>
51-
*/
52-
return $jobs->match(
53-
static fn($first, $jobs) => Maybe::all($first, ...$jobs->toList())->map(
54-
static fn(Job ...$jobs) => Sequence::of(...$jobs),
55-
),
56-
static fn() => Maybe::just(Sequence::of()),
57-
);
5846
}
5947

6048
#[\NoDiscard]

0 commit comments

Comments
 (0)