diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-03 05:14:58 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-03 05:14:58 +0000 |
commit | 0f11c85333df427a73ad6f1dbb8a0b06d58ab647 (patch) | |
tree | 9223b23e2c05451f99ceaa3fbc0036f403bbcf94 | |
parent | 6b2b3eb9318dcaa575a503f90326c8e24a0f7671 (diff) | |
download | brdo-0f11c85333df427a73ad6f1dbb8a0b06d58ab647.tar.gz brdo-0f11c85333df427a73ad6f1dbb8a0b06d58ab647.tar.bz2 |
#914226 by grendzy: Remove unused cruft from image.module.
-rw-r--r-- | modules/image/image.module | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/modules/image/image.module b/modules/image/image.module index ccf21c73a..4be8b6433 100644 --- a/modules/image/image.module +++ b/modules/image/image.module @@ -72,7 +72,7 @@ function image_menu() { $items = array(); // Generate image derivatives of publicly available files. - // If clean URLs are disabled, image derivatives will always be served + // If clean URLs are disabled, image derivatives will always be served // through the menu system. // If clean URLs are enabled and the image derivative already exists, // PHP will be bypassed. @@ -641,7 +641,7 @@ function image_style_options($include_empty = TRUE) { * Menu callback; Given a style and image path, generate a derivative. * * After generating an image, transfer it to the requesting agent. - * + * * @param $style * The image style */ @@ -650,7 +650,7 @@ function image_style_deliver($style, $scheme) { if (!$style || !file_stream_wrapper_valid_scheme($scheme)) { drupal_exit(); } - + $args = func_get_args(); array_shift($args); array_shift($args); @@ -658,8 +658,8 @@ function image_style_deliver($style, $scheme) { $image_uri = $scheme . '://' . $target; $derivative_uri = image_style_path($style['name'], $image_uri); - - // If using the private scheme, let other modules provide headers and + + // If using the private scheme, let other modules provide headers and // control access to the file. if ($scheme == 'private') { if (file_exists($derivative_uri)) { @@ -1103,16 +1103,6 @@ function theme_image_style($variables) { } /** - * Accept a percentage and return it in pixels. - */ -function image_filter_percent($value, $current_pixels) { - if (strpos($value, '%') !== FALSE) { - $value = str_replace('%', '', $value) * 0.01 * $current_pixels; - } - return $value; -} - -/** * Accept a keyword (center, top, left, etc) and return it as a pixel offset. * * @param $value |