diff --git a/modules/features2d/src/keypoint.cpp b/modules/features2d/src/keypoint.cpp index 28bea4f7d0..01717f76da 100644 --- a/modules/features2d/src/keypoint.cpp +++ b/modules/features2d/src/keypoint.cpp @@ -247,8 +247,6 @@ struct KeyPoint_LessThan return kp1.pt.y < kp2.pt.y; if( kp1.size != kp2.size ) return kp1.size > kp2.size; - if( kp1.size != kp2.size ) - return kp1.size > kp2.size; if( kp1.angle != kp2.angle ) return kp1.angle < kp2.angle; if( kp1.response != kp2.response )