mirror of
https://github.com/Intervention/image.git
synced 2025-08-11 08:24:02 +02:00
Remove NOP code
This commit is contained in:
@@ -70,8 +70,6 @@ class CropModifier implements ModifierInterface
|
||||
$resizeTo->height(),
|
||||
);
|
||||
|
||||
imagedestroy($current);
|
||||
|
||||
if ($transIndex != -1) { // @todo refactor because of duplication
|
||||
imagecolortransparent($modified, $transIndex);
|
||||
for ($y = 0; $y < $resizeTo->height(); ++$y) {
|
||||
|
@@ -59,8 +59,6 @@ class FitModifier extends AbstractFitModifier implements ModifierInterface
|
||||
$crop->height()
|
||||
);
|
||||
|
||||
imagedestroy($current);
|
||||
|
||||
if ($transIndex != -1) { // @todo refactor because of duplication
|
||||
imagecolortransparent($modified, $transIndex);
|
||||
for ($y = 0; $y < $resize->height(); ++$y) {
|
||||
|
@@ -63,8 +63,6 @@ class PadModifier extends AbstractPadModifier implements ModifierInterface
|
||||
$frame->size()->height()
|
||||
);
|
||||
|
||||
imagedestroy($current);
|
||||
|
||||
// set new content as recource
|
||||
$frame->setCore($modified);
|
||||
}
|
||||
|
@@ -25,8 +25,6 @@ class RemoveAnimationModifier implements ModifierInterface
|
||||
foreach ($image as $key => $frame) {
|
||||
if ($this->position == $key) {
|
||||
$frames->push($frame);
|
||||
} else {
|
||||
imagedestroy($frame->core());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -67,8 +67,6 @@ class ResizeModifier implements ModifierInterface
|
||||
$frame->size()->height()
|
||||
);
|
||||
|
||||
imagedestroy($current);
|
||||
|
||||
if ($transIndex != -1) { // @todo refactor because of duplication
|
||||
imagecolortransparent($modified, $transIndex);
|
||||
for ($y = 0; $y < $resizeTo->height(); ++$y) {
|
||||
|
Reference in New Issue
Block a user