Skip to content

Commit 70f02e0

Browse files
committed
Remove unused code.
1 parent 984b3e6 commit 70f02e0

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/PromiseCore.php

-18
Original file line numberDiff line numberDiff line change
@@ -216,22 +216,4 @@ public function reject(Exception $exception)
216216
}
217217
}
218218
}
219-
220-
/**
221-
* Call functions.
222-
*
223-
* @param callable[] $callbacks on fulfill or on reject callback queue
224-
* @param mixed $argument response or exception
225-
*
226-
* @return mixed response or exception
227-
*/
228-
private function call(array &$callbacks, $argument)
229-
{
230-
while (count($callbacks) > 0) {
231-
$callback = array_shift($callbacks);
232-
$argument = call_user_func($callback, $argument);
233-
}
234-
235-
return $argument;
236-
}
237219
}

0 commit comments

Comments
 (0)