Переглянути джерело

Removed silly exception case

Alex Szpakowski 12 роки тому
батько
коміт
6247e7b60b
1 змінених файлів з 0 додано та 10 видалено
  1. 0 10
      src/modules/font/freetype/Font.cpp

+ 0 - 10
src/modules/font/freetype/Font.cpp

@@ -61,17 +61,7 @@ Rasterizer *Font::newRasterizer(love::image::ImageData *data, std::string text)
 		utf8::iterator<std::string::const_iterator> end(text.end(), text.begin(), text.end());
 
 		while (i != end)
-		{
-			if (numglyphs >= strlen)
-				throw love::Exception("foo");
-
 			glyphs[numglyphs++] = *i++;
-		}
-	}
-	catch (love::Exception &)
-	{
-		delete [] glyphs;
-		throw;
 	}
 	catch (utf8::exception &e)
 	{