Removed superfluous checks for NULL in DraciFont::freeFont().

svn-id: r41510
This commit is contained in:
Denis Kasak 2009-06-14 13:10:12 +00:00
parent b8ec907ea0
commit d6ddbf7062

View File

@ -96,11 +96,8 @@ bool DraciFont::setFont(Common::String &filename) {
}
void DraciFont::freeFont() {
// If there is a font already loaded, free it
if (_charData) {
delete[] _charWidths;
delete[] _charData;
}
delete[] _charWidths;
delete[] _charData;
}
uint8 DraciFont::getCharWidth(uint8 chr) const {
@ -109,6 +106,7 @@ uint8 DraciFont::getCharWidth(uint8 chr) const {
/**
* @brief Draw a char to a Graphics::Surface
*
* @param dst Pointer to the destination surface
* @param chr Character to draw (ASCII value)
* @param tx Horizontal offset on the surface