Remove unused WindowsManager::CalcCenteredWinPos

This commit is contained in:
Wojtek Figat
2021-03-09 14:32:53 +01:00
parent 48ae338fb2
commit f82117c6fb
2 changed files with 0 additions and 12 deletions

View File

@@ -41,11 +41,6 @@ Window* WindowsManager::GetByNativePtr(void* handle)
return result;
}
Vector2 WindowsManager::CalcCenteredWinPos(const Vector2& size)
{
return (Platform::GetDesktopSize() - size) * 0.5f;
}
void WindowsManager::Register(Window* win)
{
WindowsLocker.Lock();

View File

@@ -31,13 +31,6 @@ public:
/// <returns>Found window or null if cannot find it.</returns>
static Window* GetByNativePtr(void* handle);
/// <summary>
/// Calculates the position for window that has given size and should be placed in the center of the primary screen.
/// </summary>
/// <param name="size">The size.</param>
/// <returns>window location.</returns>
static Vector2 CalcCenteredWinPos(const Vector2& size);
public:
// Used by WindowBase