From c0af6c044570e0561afdea109f4101dba04e2510 Mon Sep 17 00:00:00 2001 From: Pascal Kriete Date: Wed, 10 Nov 2010 16:05:35 -0500 Subject: removing a few php 4 workarounds from the image lib. --- system/libraries/Image_lib.php | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'system/libraries/Image_lib.php') diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index c9c8ced0f..dec5f34f6 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -712,14 +712,6 @@ class CI_Image_lib { */ function image_rotate_gd() { - // Is Image Rotation Supported? - // this function is only supported as of PHP 4.3 - if ( ! function_exists('imagerotate')) - { - $this->set_error('imglib_rotate_unsupported'); - return FALSE; - } - // Create the image handle if ( ! ($src_img = $this->image_create_gd())) { @@ -1215,11 +1207,6 @@ class CI_Image_lib { return FALSE; } - if (phpversion() == '4.4.1') - { - @touch($this->full_dst_path); // PHP 4.4.1 bug #35060 - workaround - } - if ( ! @imagejpeg($resource, $this->full_dst_path, $this->quality)) { $this->set_error('imglib_save_failed'); -- cgit v1.2.3-24-g4f1b