Remove useless API at VideoView - WidthForHeight / HeightForWidth 91/270591/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 4 Feb 2022 13:59:18 +0000 (22:59 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 7 Feb 2022 03:55:53 +0000 (12:55 +0900)
VideoView::WidthForHeight and VideoView::HeightForWidth
did exactly same jobs as Control::~~~For~~~. So just erase it.

Change-Id: Id741abaf5884651ed921e23727c3a0acf8085f16
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/controls/video-view/video-view-impl.cpp
dali-toolkit/internal/controls/video-view/video-view-impl.h

index 9934f3b..c08625f 100644 (file)
@@ -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();
index d1605ce..c8b2a83 100644 (file)
@@ -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.