diff --git a/src/Klarna.php b/src/Klarna.php index 040c7dc..8d1c214 100644 --- a/src/Klarna.php +++ b/src/Klarna.php @@ -3620,16 +3620,13 @@ protected function xmlrpc_call($method, $array) */ $this->xmlrpc->verifypeer = false; - $timestart = microtime(true); - - //Create the XMLRPC message. - $msg = new xmlrpcmsg($method); $params = array_merge( array( $this->PROTO, $this->VERSION ), $array ); - + + //Create the XMLRPC message. $msg = new xmlrpcmsg($method); foreach ($params as $p) { if (!$msg->addParam( @@ -3650,11 +3647,6 @@ protected function xmlrpc_call($method, $array) } $xmlrpcresp = $this->xmlrpc->send($msg); - //Calculate time and selectTime. - $timeend = microtime(true); - $time = (int) (($selectDateTime - $timestart) * 1000); - $selectTime = (int) (($timeend - $timestart) * 1000); - $status = $xmlrpcresp->faultCode(); if ($status !== 0) { diff --git a/src/PCStorage.php b/src/PCStorage.php index 4ee291b..e745639 100644 --- a/src/PCStorage.php +++ b/src/PCStorage.php @@ -147,7 +147,6 @@ public function getPClasses($eid, $country, $type = null) throw new Klarna_ArgumentNotSetException('country'); } - $tmp = false; if (!is_array($this->pclasses)) { return; }