GRIM: Don't bother checking if the value returned from new is nulll

It can never be null and will throw an exception if it can't allocate the
memory
This commit is contained in:
Joel Teichroeb 2014-02-04 13:07:17 -08:00
parent e65d98801e
commit dbfd0efab6
3 changed files with 0 additions and 10 deletions

View file

@ -1074,8 +1074,6 @@ void GfxOpenGLS::createFont(Font *font) {
uint arraySize = size * size * bpp * charsWide * charsHigh;
byte *temp = new byte[arraySize];
if (!temp)
error("Could not allocate %d bytes", arraySize);
memset(temp, 0, arraySize);