From b0c7c79d3a462f4540950e3b03924e52f8eb22c1 Mon Sep 17 00:00:00 2001 From: danogentili Date: Thu, 17 Nov 2016 14:02:22 +0300 Subject: [PATCH] Removed useless __destruct methods --- src/danog/MadelineProto/API.php | 3 +-- src/danog/MadelineProto/MTProto.php | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index ffe60eaf..9c962ef3 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -34,13 +34,12 @@ class API extends Tools \danog\MadelineProto\Logger::log('Getting future salts...'); $this->future_salts = $this->get_future_salts([3]); - + \danog\MadelineProto\Logger::log('MadelineProto is ready!'); } public function __destruct() { - unset($this->API); restore_error_handler(); } diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 133c4b6b..d7437906 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -184,9 +184,4 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB } } - - public function __destruct() - { - unset($this->datacenter); - } }