remove unused code

This commit is contained in:
Manuel Raynaud
2014-03-10 11:57:58 +01:00
parent 210eb6dd72
commit 81a09e1a98
35 changed files with 17 additions and 199 deletions

View File

@@ -112,8 +112,6 @@ class Image extends BaseCachedFile implements EventSubscriberInterface
throw new \InvalidArgumentException("Cache sub-directory and source file path cannot be null");
}
// echo basename($source_file).": ";
// Find cached file path
$cacheFilePath = $this->getCacheFilePath($subdir, $source_file, $event->isOriginalImage(), $event->getOptionsHash());
@@ -391,8 +389,6 @@ class Image extends BaseCachedFile implements EventSubscriberInterface
$image->resize(new Box($next_width, $next_height));
// echo "w=$dest_width, h=$dest_height, nw=$next_width, nh=$next_height, dx=$delta_x, dy=$delta_y, bw=$border_width, bh=$border_height\n";
if ($resize_mode == self::EXACT_RATIO_WITH_BORDERS) {
$border_width = intval(($dest_width - $next_width) / 2);