[core] Remove unused

This commit is contained in:
John Firebaugh
2015-11-23 16:35:32 -08:00
parent 36081f6486
commit 6ff3ef55f8
6 changed files with 42 additions and 63 deletions

View File

@@ -81,8 +81,7 @@ Image::Image(std::string const& data)
auto reader = getImageReader(reinterpret_cast<const uint8_t*>(data.c_str()), data.size());
width = reader->width();
height = reader->height();
img = std::make_unique<uint8_t[]>(width * height * 4);
reader->read(0, 0, width, height, img.get());
img = reader->read();
}
catch (ImageReaderException const& ex)
{