From: Eunki, Hong Date: Mon, 14 Feb 2022 04:42:27 +0000 (+0900) Subject: [Tizen][Legacy][Svace] Remove useless API at VideoView - WidthForHeight / HeightForWidth X-Git-Tag: accepted/tizen/7.0/unified/20221110.060314^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified;p=platform%2Fcore%2Fuifw%2Fdali-toolkit-legacy.git [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 --- 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: /**