mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Removed silly exception case
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user