From a4a12d2f2d00831a4d0c48280c81c0be9f9214cb Mon Sep 17 00:00:00 2001 From: Jean Paul Galea Date: Wed, 15 Jul 2015 15:44:29 +0200 Subject: [PATCH] Refactor. - remove wrapper which provides no help, just makes it harder to follow the code. --- ykval-synclib.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ykval-synclib.php b/ykval-synclib.php index 83f3a60..5158ee8 100644 --- a/ykval-synclib.php +++ b/ykval-synclib.php @@ -434,7 +434,7 @@ class SyncLib /* Send out requests */ - $ans_arr=$this->retrieveURLasync_wrap($urls, $ans_req, $timeout); + $ans_arr=retrieveURLasync("YK-VAL sync", $urls, $this->myLog, $ans_req, $match="status=OK", $returl=True, $timeout, $this->curlopts); if (!is_array($ans_arr)) { $this->log(LOG_WARNING, 'No responses from validation server pool'); @@ -537,10 +537,4 @@ class SyncLib if (isset($this->answers)) return $this->answers; else return 0; } - - function retrieveURLasync_wrap ($urls, $ans_req=1, $timeout=1.0) - { - return retrieveURLasync("YK-VAL sync", $urls, $this->myLog, $ans_req, $match="status=OK", $returl=True, $timeout, $this->curlopts); - } - }