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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user