]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Because the other part of the code works now, this is unnecessary
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 20 Jul 2016 22:34:40 +0000 (00:34 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 20 Jul 2016 22:34:40 +0000 (00:34 +0200)
lib/imagefile.php

index 0d711ad9861d24a2a13b05b54173e1d97f3e5fe1..22fdda9d3085c31775f31a7e3d171bd5003dac1d 100644 (file)
@@ -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;