From e82342dce0957b6068b994978ed0a36075f3b1bd Mon Sep 17 00:00:00 2001 From: Yuriy Toporovskyy Date: Wed, 4 Aug 2021 17:19:46 -0400 Subject: [PATCH] Delete code which was only commented out Signed-off-by: Yuriy Toporovskyy --- Code/Editor/TrackView/CommentNodeAnimator.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Code/Editor/TrackView/CommentNodeAnimator.cpp b/Code/Editor/TrackView/CommentNodeAnimator.cpp index f01cbc84b4..ee01656938 100644 --- a/Code/Editor/TrackView/CommentNodeAnimator.cpp +++ b/Code/Editor/TrackView/CommentNodeAnimator.cpp @@ -159,21 +159,10 @@ void CCommentNodeAnimator::Render(CTrackViewAnimNode* pNode, [[maybe_unused]] co } } -Vec2 CCommentNodeAnimator::GetScreenPosFromNormalizedPos(const Vec2& unitPos) +Vec2 CCommentNodeAnimator::GetScreenPosFromNormalizedPos(const Vec2&) { - (void)unitPos; AZ_Error("CryLegacy", false, "CCommentNodeAnimator::GetScreenPosFromNormalizedPos not supported"); return Vec2(0, 0); - //const CCamera& cam = gEnv->pSystem->GetViewCamera(); - //float width = (float)cam.GetViewSurfaceX(); - //int height = cam.GetViewSurfaceZ(); - //float fAspectRatio = gSettings.viewports.fDefaultAspectRatio; - //float camWidth = height * fAspectRatio; - - //float x = 0.5f * width + 0.5f * camWidth * unitPos.x; - //float y = 0.5f * height * (1.f - unitPos.y); - - //return Vec2(x, y); } void CCommentNodeAnimator::DrawText(const char* szFontName, float fSize, const Vec2& unitPos, const ColorF col, const char* szText, int align)