From e4b61dbc40d93753f59ec977f9e916b8a497b516 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Fri, 4 Feb 2022 22:59:18 +0900 Subject: [PATCH] Remove useless API at VideoView - WidthForHeight / HeightForWidth VideoView::WidthForHeight and VideoView::HeightForWidth did exactly same jobs as Control::~~~For~~~. So just erase it. Change-Id: Id741abaf5884651ed921e23727c3a0acf8085f16 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 9934f3b..c08625f 100644 --- a/dali-toolkit/internal/controls/video-view/video-view-impl.cpp +++ b/dali-toolkit/internal/controls/video-view/video-view-impl.cpp @@ -608,30 +608,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 d1605ce..c8b2a83 100644 --- a/dali-toolkit/internal/controls/video-view/video-view-impl.h +++ b/dali-toolkit/internal/controls/video-view/video-view-impl.h @@ -304,16 +304,6 @@ private: // From Control */ Vector3 GetNaturalSize() override; - /** - * @copydoc Toolkit::Control::GetHeightForWidth() - */ - float GetHeightForWidth(float width) override; - - /** - * @copydoc Toolkit::Control::GetWidthForHeight() - */ - float GetWidthForHeight(float height) override; - private: /** * @brief Construct a new VideoView. -- 2.7.4