From aa1a698a11c9671430a2764a688f25eb9725db9f Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Fri, 24 Aug 2018 20:59:36 +0300 Subject: [PATCH] non used code removed --- src/Client.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/Client.php b/src/Client.php index d4e21e6..18763fe 100644 --- a/src/Client.php +++ b/src/Client.php @@ -136,7 +136,6 @@ class Client implements Interfaces\ClientInterface // We repeat this for the second and third bits. // If the fourth bit is set, we need to remove anything left in the first byte // and then read in yet another byte. - $length = 0; if ($byte & 128) { if (($byte & 192) === 128) { $length = (($byte & 63) << 8) + \ord(fread($this->_socket, 1)); @@ -183,25 +182,6 @@ class Client implements Interfaces\ClientInterface return $this; } -// public function read2(bool $parse = true): array -// { -// while (true) { -// -// $res = ''; -// while ($buf = fread($this->_socket, 1)) { -// if (substr($res, -5) === '!done') { -// echo 'done'; -// break 2; -// } -// echo "$buf\n"; -// $res .= $buf; -// } -// $result[] = $res; -// } -// print_r($result); -// die(); -// } - /** * Read answer from server after query was executed *