diff --git a/src/tiff_reader.cpp b/src/tiff_reader.cpp index 37e59b556..1f885407e 100644 --- a/src/tiff_reader.cpp +++ b/src/tiff_reader.cpp @@ -598,13 +598,9 @@ image_any tiff_reader::read(unsigned x, unsigned y, unsigned width, unsigned } template -void tiff_reader::read_generic(std::size_t, std::size_t, image_rgba8& image) +void tiff_reader::read_generic(std::size_t, std::size_t, image_rgba8&) { - TIFF* tif = open(stream_); - if (tif) - { - throw std::runtime_error("tiff_reader: TODO - tiff is not stripped or tiled"); - } + throw std::runtime_error("tiff_reader: TODO - tiff is not stripped or tiled"); } template