From 1b0d9189152f8731ea138e060617ad0209d21fa7 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 9 Jul 2019 08:47:07 +0200 Subject: [PATCH] Remove unused method --- src/Gd/Imagine.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Gd/Imagine.php b/src/Gd/Imagine.php index 459d3a166..cc870dc8c 100644 --- a/src/Gd/Imagine.php +++ b/src/Gd/Imagine.php @@ -37,24 +37,6 @@ public function __construct() $this->requireGdVersion('2.0.1'); } - /** - * Get the path to a directory used to store temporary files (with slashes as directory separator - without leading slash). - * - * @return string - */ - protected function getTemporaryDirectory() - { - if ($this->temporaryDirectory !== '') { - return $this->temporaryDirectory; - } - $temporaryDirectory = rtrim(str_replace('/', DIRECTORY_SEPARATOR, (string) @sys_get_temp_dir()), '/'); - if ($temporaryDirectory === '') { - throw new RuntimeException('Failed to retrieve the system temporary directory'); - } - - return $temporaryDirectory; - } - /** * {@inheritdoc} *