mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Merge pull request #8349 from Robyt3/Mapitem-Image-Cleanup
Remove unused `CImageInfo::ImageFormatFromInt`
This commit is contained in:
commit
0c66786fb6
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue