1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-11 16:34:00 +02:00

Remove NOP code

This commit is contained in:
Oliver Vogel
2023-10-30 10:11:00 +01:00
parent f19be728ef
commit c760048186
5 changed files with 0 additions and 10 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -63,8 +63,6 @@ class PadModifier extends AbstractPadModifier implements ModifierInterface
$frame->size()->height()
);
imagedestroy($current);
// set new content as recource
$frame->setCore($modified);
}

View File

@@ -25,8 +25,6 @@ class RemoveAnimationModifier implements ModifierInterface
foreach ($image as $key => $frame) {
if ($this->position == $key) {
$frames->push($frame);
} else {
imagedestroy($frame->core());
}
}

View File

@@ -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) {