mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove unused CImageInfo::ImageFormatFromInt
Since the image format is not parsed from maps anymore, this function is unnecessary.
This commit is contained in:
parent
d34fc96049
commit
74e2e04b7d
|
@ -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