8000 Removed some unnecessary left-overs. · reactphp/event-loop@b5d4997 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5d4997

Browse files
committed
Removed some unnecessary left-overs.
1 parent 0c42fea commit b5d4997

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

ExtEventLoop.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,9 @@ class ExtEventLoop implements LoopInterface
2525
private $writeListeners = [];
2626
private $running;
2727

28-
/**
29-
* @param EventBase|null $eventBase The libevent event base object.
30-
*/
31-
public function __construct(EventBase $eventBase = null)
28+
public function __construct()
3229
{
33-
if (null === $eventBase) {
34-
$eventBase = new EventBase;
35-
}
36-
37-
$this->eventBase = $eventBase;
30+
$this->eventBase = new EventBase;
3831
$this->nextTickQueue = new NextTickQueue($this);
3932
$this->timerEvents = new SplObjectStorage;
4033

StreamSelectLoop.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ protected function waitForStreamActivity($timeout)
258258
call_user_func($this->writeListeners[$key], $stream, $this);
259259
}
260260
}
261-
262-
return true;
263261
}
264262

265263
/**

0 commit comments

Comments
 (0)
0