[Tizen] Remove useless API - WidthForHeight / HeightForWidth 90/270590/2 accepted/tizen/unified/20220212.064902 submit/tizen/20220208.044604 submit/tizen/20220211.104100
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 4 Feb 2022 13:55:44 +0000 (22:55 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Fri, 4 Feb 2022 14:01:00 +0000 (23:01 +0900)
WidgetView::WidthForHeight and WidgetView::HeightForWidth
did exactly same jobs as Control::~~~For~~~. So just erase it.

Change-Id: I90e9cf4f9a40c8f1c35a6dbdee41f06aea63da0c
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
widget_viewer_dali/internal/widget_view/widget_view_impl.cpp
widget_viewer_dali/internal/widget_view/widget_view_impl.h

index 35b444743b827ef68f8ca1f59b5f078f6dbefb59..f5b6bc7b4060ea4f8afb204f08e0946ea4a0c6c4 100644 (file)
@@ -1290,30 +1290,6 @@ Vector3 WidgetView::GetNaturalSize()
   }
 }
 
-float WidgetView::GetHeightForWidth( float width )
-{
-  if( mWidth > 0 && mHeight > 0 )
-  {
-    return GetHeightForWidthBase( width );
-  }
-  else
-  {
-    return Control::GetHeightForWidthBase( width );
-  }
-}
-
-float WidgetView::GetWidthForHeight( float height )
-{
-  if( mWidth > 0 && mHeight > 0 )
-  {
-    return GetWidthForHeightBase( height );
-  }
-  else
-  {
-    return Control::GetWidthForHeightBase( height );
-  }
-}
-
 void WidgetView::CloseRemoteSurface()
 {
   if( mWatcherHandle != NULL )
index f9526412a4b9bef9d6e73bcd4fad175cacbba9a9..9c5ac79e121a40d12a6914628d06cdc5eddbe3e6 100644 (file)
@@ -425,16 +425,6 @@ private: // From Control
    */
   virtual Vector3 GetNaturalSize();
 
-  /**
-   * @copydoc Toolkit::Control::GetHeightForWidth()
-   */
-  virtual float GetHeightForWidth( float width );
-
-  /**
-   * @copydoc Toolkit::Control::GetWidthForHeight()
-   */
-  virtual float GetWidthForHeight( float height );
-
   /**
    * @copydoc Toolkit::Control::OnRelayout()
    */