Skip to content
Snippets Groups Projects
Commit cf1b0bd8 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

inline fct and shorten

parent 1eb215d3
No related branches found
No related tags found
1 merge request!1628simplify and unify API and code for reading or writing data files
......@@ -104,7 +104,7 @@ void ReadWriteTiff::read(std::istream& input_stream)
read_header();
read_data();
close();
TIFFClose(m_tiff);
}
Datafield* ReadWriteTiff::readDatafield(std::istream& input_stream)
......@@ -245,14 +245,4 @@ void ReadWriteTiff::read_data()
_TIFFfree(buf);
}
void ReadWriteTiff::close()
{
if (m_tiff) {
TIFFClose(m_tiff);
m_tiff = nullptr;
m_width = 0;
m_height = 0;
}
}
#endif // BA_TIFF_SUPPORT
......@@ -42,7 +42,6 @@ private:
void read(std::istream& input_stream);
void read_header();
void read_data();
void close();
TIFF* m_tiff;
size_t m_width, m_height;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment