Remove unnecessary condition (will never reach)

pull/18895/head
Or Avital 4 years ago
parent 1b3dd8f38b
commit 5a3a915a9b
  1. 3
      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);
}

Loading…
Cancel
Save