Skip to content

Commit 4e00b87

Browse files
janedbalondrejmirtes
authored andcommitted
Drop unused ProcessPromise::getName
1 parent e80e894 commit 4e00b87

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/Command/FixerApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ private function analyse(
465465
});
466466
});
467467

468-
$process = new ProcessPromise($loop, 'changedFileAnalysis', ProcessHelper::getWorkerCommand(
468+
$process = new ProcessPromise($loop, ProcessHelper::getWorkerCommand(
469469
$mainScript,
470470
'fixer:worker',
471471
$projectConfigFile,

src/Process/ProcessPromise.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,13 @@ final class ProcessPromise
2222

2323
private bool $canceled = false;
2424

25-
public function __construct(private LoopInterface $loop, private string $name, private string $command)
25+
public function __construct(private LoopInterface $loop, private string $command)
2626
{
2727
$this->deferred = new Deferred(function (): void {
2828
$this->cancel();
2929
});
3030
}
3131

32-
public function getName(): string
33-
{
34-
return $this->name;
35-
}
36-
3732
/**
3833
* @return PromiseInterface<string>
3934
*/

0 commit comments

Comments
 (0)