From ccf04dca01d8df62bab3646fb47b857ae7a5f97f Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Mon, 14 Feb 2022 13:42:27 +0900 Subject: [PATCH] [Tizen][Legacy][Svace] Remove useless API at VideoView - WidthForHeight / HeightForWidth VideoView::GetWidthForHeight and VideoView::GetHeightForWidth did exactly same jobs as Control::~~~For~~~. So just erase it. Change-Id: I1245cb134cac9802f2cd16a3e54192a48d5486f7 Signed-off-by: Eunki, Hong --- .../controls/video-view/video-view-impl.cpp | 24 ---------------------- .../internal/controls/video-view/video-view-impl.h | 10 --------- 2 files changed, 34 deletions(-) diff --git a/dali-toolkit/internal/controls/video-view/video-view-impl.cpp b/dali-toolkit/internal/controls/video-view/video-view-impl.cpp index d85be9a..e1b2f06 100755 --- a/dali-toolkit/internal/controls/video-view/video-view-impl.cpp +++ b/dali-toolkit/internal/controls/video-view/video-view-impl.cpp @@ -583,30 +583,6 @@ Vector3 VideoView::GetNaturalSize() } } -float VideoView::GetHeightForWidth( float width ) -{ - if( mVideoSize.GetWidth() > 0 && mVideoSize.GetHeight() > 0 ) - { - return GetHeightForWidthBase( width ); - } - else - { - return Control::GetHeightForWidthBase( width ); - } -} - -float VideoView::GetWidthForHeight( float height ) -{ - if( mVideoSize.GetWidth() > 0 && mVideoSize.GetHeight() > 0 ) - { - return GetWidthForHeightBase( height ); - } - else - { - return Control::GetWidthForHeightBase( height ); - } -} - void VideoView::SetWindowSurfaceTarget() { Actor self = Self(); diff --git a/dali-toolkit/internal/controls/video-view/video-view-impl.h b/dali-toolkit/internal/controls/video-view/video-view-impl.h index 3d345a3..5cef6c6 100755 --- a/dali-toolkit/internal/controls/video-view/video-view-impl.h +++ b/dali-toolkit/internal/controls/video-view/video-view-impl.h @@ -278,16 +278,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 ); - private: /** -- 2.7.4