From 5a3a915a9ba35b31808577245f71d468319d311c Mon Sep 17 00:00:00 2001 From: Or Avital Date: Sun, 22 Nov 2020 14:19:20 +0200 Subject: [PATCH] Remove unnecessary condition (will never reach) --- modules/core/src/copy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/src/copy.cpp b/modules/core/src/copy.cpp index 7f4329df78..dcd585d834 100644 --- a/modules/core/src/copy.cpp +++ b/modules/core/src/copy.cpp @@ -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); }