1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 11:32:11 +02:00

Remove useless else branch

Passing `NULL` as `gdTransformAffineGetImage()`'s `src_area` is fine,
but in this case there's no need to calculate the `rect`, and since
`pRect` has already been initialized to `NULL`, we can remove the whole
else branch.
This commit is contained in:
Christoph M. Becker
2020-01-06 08:53:50 +01:00
parent 019e8d438c
commit d83f89f076

View File

@@ -3936,12 +3936,6 @@ PHP_FUNCTION(imageaffine)
RETURN_THROWS();
}
pRect = ▭
} else {
rect.x = -1;
rect.y = -1;
rect.width = gdImageSX(src);
rect.height = gdImageSY(src);
pRect = NULL;
}
if (gdTransformAffineGetImage(&dst, src, pRect, affine) != GD_TRUE) {