From bc0e1aa00f2718efb0601e8af52fdb2d3c8f12c1 Mon Sep 17 00:00:00 2001 From: lethal-guitar Date: Sun, 22 Aug 2021 11:42:40 +0200 Subject: [PATCH] Cleanup: Remove now unused function --- src/renderer/renderer.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/renderer/renderer.cpp b/src/renderer/renderer.cpp index a3416dde6..9e4eab16a 100644 --- a/src/renderer/renderer.cpp +++ b/src/renderer/renderer.cpp @@ -401,7 +401,6 @@ struct Renderer::Impl RenderMode mLastKnownRenderMode = RenderMode::SpriteBatch; // cold - base::Size mMaxWindowSize; int mNumTextures = 0; int mNumInternalTextures = 0; TextureId mWaterSurfaceAnimTexture = 0; @@ -429,11 +428,6 @@ struct Renderer::Impl {"position", "texCoordMask"}) , mWindowSize(getSize(pWindow)) , mpWindow(pWindow) - , mMaxWindowSize([pWindow]() { - SDL_DisplayMode displayMode; - sdl_utils::check(SDL_GetDesktopDisplayMode(0, &displayMode)); - return base::Size{displayMode.w, displayMode.h}; - }()) { // General configuration glDisable(GL_DEPTH_TEST); @@ -1323,12 +1317,6 @@ base::Size Renderer::windowSize() const } -base::Size Renderer::maxWindowSize() const -{ - return mpImpl->mMaxWindowSize; -} - - void Renderer::setRenderTarget(const TextureId target) { mpImpl->setRenderTarget(target);