From 74e2e04b7df7b974a9bad446a168bb23b5fa60ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Fri, 10 May 2024 21:44:49 +0200 Subject: [PATCH] Remove unused `CImageInfo::ImageFormatFromInt` Since the image format is not parsed from maps anymore, this function is unnecessary. --- src/engine/graphics.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/engine/graphics.h b/src/engine/graphics.h index cfd4d8e2c..14017affd 100644 --- a/src/engine/graphics.h +++ b/src/engine/graphics.h @@ -122,13 +122,6 @@ public: { return m_Width * m_Height * PixelSize(m_Format); } - - static EImageFormat ImageFormatFromInt(int Format) - { - if(Format < (int)FORMAT_RGB || Format > (int)FORMAT_SINGLE_COMPONENT) - return FORMAT_ERROR; - return (EImageFormat)Format; - } }; /*