Remove unnecessary condition (will never reach)

This commit is contained in:
Or Avital 2020-11-22 14:19:20 +02:00
parent 1b3dd8f38b
commit 5a3a915a9b

View File

@ -1032,8 +1032,7 @@ void flip( InputArray _src, OutputArray _dst, int flip_mode )
}
if ((size.width == 1 && flip_mode > 0) ||
(size.height == 1 && flip_mode == 0) ||
(size.height == 1 && size.width == 1 && flip_mode < 0))
(size.height == 1 && flip_mode == 0))
{
return _src.copyTo(_dst);
}