Skip to content

Commit d06f13a

Browse files
committed
Remove useless stubs
1 parent a99d272 commit d06f13a

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

src/ChildProcess.php

-48
Original file line numberDiff line numberDiff line change
@@ -45,52 +45,4 @@ public function message(string $alias, mixed $message): void
4545
'message' => json_encode($message),
4646
])->json();
4747
}
48-
49-
public function onMessage(\Closure $callback)
50-
{
51-
// Event::listen(function (MessageReceived $event) use ($callback) {
52-
// if ($event->alias !== $this->alias) {
53-
// return;
54-
// }
55-
//
56-
// $callback($event);
57-
// );
58-
return $this;
59-
}
60-
61-
public function onError(\Closure $callback)
62-
{
63-
// Event::listen(function (ErrorReceived $event) use ($callback) {
64-
// if ($event->alias !== $this->alias) {
65-
// return;
66-
// }
67-
//
68-
// $callback($event);
69-
// );
70-
return $this;
71-
}
72-
73-
public function onSpawn(\Closure $callback)
74-
{
75-
// Event::listen(function (ProcessSpawned $event) use ($callback) {
76-
// if ($event->alias !== $this->alias) {
77-
// return;
78-
// }
79-
//
80-
// $callback($event);
81-
// );
82-
return $this;
83-
}
84-
85-
public function onExit(\Closure $callback)
86-
{
87-
// Event::listen(function (ProcessExited $event) use ($callback) {
88-
// if ($event->alias !== $this->alias) {
89-
// return;
90-
// }
91-
//
92-
// $callback($event);
93-
// );
94-
return $this;
95-
}
9648
}

0 commit comments

Comments
 (0)