From: Mikael Nordfeldth Date: Wed, 20 Jul 2016 22:34:40 +0000 (+0200) Subject: Because the other part of the code works now, this is unnecessary X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d5c733919b3f80b4fe8f37f99e63e57e3b76ba47;p=quix0rs-gnu-social.git Because the other part of the code works now, this is unnecessary --- diff --git a/lib/imagefile.php b/lib/imagefile.php index 0d711ad986..22fdda9d30 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -120,14 +120,6 @@ class ImageFile Event::handle('FillImageFileMetadata', array($this)); } - public function __destruct() - { - if (strlen($this->filepath) > 0 && (!$this->fileRecord instanceof File || $this->filepath !== $this->fileRecord->getPath())) { - common_debug(__METHOD__.': Deleting temporary file that was created as image file thumbnail source: '._ve($this->filepath)); - @unlink($this->filepath); - } - } - public static function fromFileObject(File $file) { $imgPath = null;