Skip to content

Commit

Permalink
Remove unused property
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Nov 10, 2015
1 parent 5aed8c4 commit abd3dd6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Observable/Internal/EmitQueue.php
Expand Up @@ -13,6 +13,9 @@

class EmitQueue
{
/**
* @var bool
*/
private $complete = false;

/**
Expand All @@ -26,10 +29,8 @@ class EmitQueue
private $placeholder;

/**
* @var \Icicle\Promise\PromiseInterface[]
* @param bool $backPressure
*/
private $promises = [];

public function __construct($backPressure = true)
{
$this->backPressure = (bool) $backPressure;
Expand All @@ -38,7 +39,7 @@ public function __construct($backPressure = true)
}

/**
* @param $value
* @param mixed $value
*
* @return \Generator
*/
Expand Down Expand Up @@ -71,7 +72,7 @@ public function pull()
public function complete()
{
$this->complete = true;
$this->promises = [];
$this->placeholder = null;
$this->deferred->resolve();
}

Expand All @@ -83,7 +84,7 @@ public function complete()
public function error(\Exception $exception)
{
$this->complete = true;
$this->promises = [];
$this->placeholder = null;
$this->deferred->reject($exception);
}

Expand Down

0 comments on commit abd3dd6

Please sign in to comment.