Salome HOME
bos #18968 [CEA] Sometimes when clicking to add a face to a group two faces are added
[modules/gui.git] / src / OCCViewer / OCCViewer.cxx
index ffd136941e6c4eee04281d1e110b850ba11bef31..7fbf45cc270e583e78cdb98b95e1246a743190a1 100644 (file)
@@ -45,14 +45,3 @@ QColor OCCViewer::color( const Quantity_Color& c )
                   int( c.Green() * 255 ),
                   int( c.Blue()  * 255 ) );
 }
-
-/*!
-  \brief Check if size of given rectagle exceeds threshold value for mouse events.
-  \param rect Given rectangle
-  \return Result of comparison
-*/
-bool OCCViewer::overThreshold( const QRect& rect )
-{
-  const int threshold = 3;
-  return qMin( rect.height(), rect.width() ) >= threshold;
-}