Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Jul 9, 2019
1 parent 9c6a507 commit 1b0d918
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Gd/Imagine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*
Expand Down

0 comments on commit 1b0d918

Please sign in to comment.