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:
@@ -70,8 +70,6 @@ class CropModifier implements ModifierInterface
|
|||||||
$resizeTo->height(),
|
$resizeTo->height(),
|
||||||
);
|
);
|
||||||
|
|
||||||
imagedestroy($current);
|
|
||||||
|
|
||||||
if ($transIndex != -1) { // @todo refactor because of duplication
|
if ($transIndex != -1) { // @todo refactor because of duplication
|
||||||
imagecolortransparent($modified, $transIndex);
|
imagecolortransparent($modified, $transIndex);
|
||||||
for ($y = 0; $y < $resizeTo->height(); ++$y) {
|
for ($y = 0; $y < $resizeTo->height(); ++$y) {
|
||||||
|
@@ -59,8 +59,6 @@ class FitModifier extends AbstractFitModifier implements ModifierInterface
|
|||||||
$crop->height()
|
$crop->height()
|
||||||
);
|
);
|
||||||
|
|
||||||
imagedestroy($current);
|
|
||||||
|
|
||||||
if ($transIndex != -1) { // @todo refactor because of duplication
|
if ($transIndex != -1) { // @todo refactor because of duplication
|
||||||
imagecolortransparent($modified, $transIndex);
|
imagecolortransparent($modified, $transIndex);
|
||||||
for ($y = 0; $y < $resize->height(); ++$y) {
|
for ($y = 0; $y < $resize->height(); ++$y) {
|
||||||
|
@@ -63,8 +63,6 @@ class PadModifier extends AbstractPadModifier implements ModifierInterface
|
|||||||
$frame->size()->height()
|
$frame->size()->height()
|
||||||
);
|
);
|
||||||
|
|
||||||
imagedestroy($current);
|
|
||||||
|
|
||||||
// set new content as recource
|
// set new content as recource
|
||||||
$frame->setCore($modified);
|
$frame->setCore($modified);
|
||||||
}
|
}
|
||||||
|
@@ -25,8 +25,6 @@ class RemoveAnimationModifier implements ModifierInterface
|
|||||||
foreach ($image as $key => $frame) {
|
foreach ($image as $key => $frame) {
|
||||||
if ($this->position == $key) {
|
if ($this->position == $key) {
|
||||||
$frames->push($frame);
|
$frames->push($frame);
|
||||||
} else {
|
|
||||||
imagedestroy($frame->core());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -67,8 +67,6 @@ class ResizeModifier implements ModifierInterface
|
|||||||
$frame->size()->height()
|
$frame->size()->height()
|
||||||
);
|
);
|
||||||
|
|
||||||
imagedestroy($current);
|
|
||||||
|
|
||||||
if ($transIndex != -1) { // @todo refactor because of duplication
|
if ($transIndex != -1) { // @todo refactor because of duplication
|
||||||
imagecolortransparent($modified, $transIndex);
|
imagecolortransparent($modified, $transIndex);
|
||||||
for ($y = 0; $y < $resizeTo->height(); ++$y) {
|
for ($y = 0; $y < $resizeTo->height(); ++$y) {
|
||||||
|
Reference in New Issue
Block a user