From b42a2d45e736d898582f42d0cd978c390d069e37 Mon Sep 17 00:00:00 2001 From: J Miller Date: Sun, 19 May 2013 22:00:42 -0700 Subject: [PATCH] Remove readBase64() from File utility, since it is not commonly used. --- lib/Cake/Network/Email/CakeEmail.php | 2 +- lib/Cake/Utility/File.php | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/Cake/Network/Email/CakeEmail.php b/lib/Cake/Network/Email/CakeEmail.php index becbdcf5a..d6c7eea3c 100644 --- a/lib/Cake/Network/Email/CakeEmail.php +++ b/lib/Cake/Network/Email/CakeEmail.php @@ -1386,7 +1386,7 @@ class CakeEmail { */ protected function _readFile($path) { $File = new File($path); - return $File->readBase64(); + return chunk_split(base64_encode($File->read())); } /** diff --git a/lib/Cake/Utility/File.php b/lib/Cake/Utility/File.php index e10ee9c75..828da7fa3 100644 --- a/lib/Cake/Utility/File.php +++ b/lib/Cake/Utility/File.php @@ -180,17 +180,6 @@ class File { return trim($data); } -/** - * Return the contents of this File as a base64 version of the file contents. - * The string is split into smaller chunks to match RFC 2045 semantics. - * - * @return string File contents in base64 encoding - * @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::readBase64 - */ - public function readBase64() { - return chunk_split(base64_encode($this->read())); - } - /** * Sets or gets the offset for the currently opened file. *