Remove unused CImageInfo::ImageFormatFromInt

Since the image format is not parsed from maps anymore, this function is unnecessary.
This commit is contained in:
Robert Müller 2024-05-10 21:44:49 +02:00
parent d34fc96049
commit 74e2e04b7d

View file

@ -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;
}
};
/*