From fb3e7727743d6c2ea1b9a52c5aaacd4f9087db35 Mon Sep 17 00:00:00 2001 From: shimon Date: Tue, 29 Oct 2024 17:51:07 +0200 Subject: [PATCH] debug --- src/Appwrite/Utopia/Response.php | 42 -------------------------------- 1 file changed, 42 deletions(-) diff --git a/src/Appwrite/Utopia/Response.php b/src/Appwrite/Utopia/Response.php index 4b5fdd30ce..6cc2639f51 100644 --- a/src/Appwrite/Utopia/Response.php +++ b/src/Appwrite/Utopia/Response.php @@ -694,48 +694,6 @@ class Response extends SwooleResponse $this->send($body); } - /** - * Output response - * - * Generate HTTP response output including the response header (+cookies) and body and prints them. - * - * @param string $body - * @param bool $end - * - * @return void - */ - public function bla(string $body = '', bool $end = false): void - { - if ($this->sent) { - return; - } - - if ($end) { - $this->sent = true; - } - - - - $this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime)); - - $this - ->appendCookies() - ->appendHeaders(); - - $this->payload = [ - 'payload' => $body - ]; - - if (!$this->disablePayload) { - $this->write($body); - if ($end) { - $this->disablePayload(); - $this->end(); - } - } else { - $this->end(); - } - } /** * YAML *