type should not necessarily inherit when we read a file

This commit is contained in:
David Rose 2003-04-26 15:51:19 +00:00
parent ba755587b7
commit adffbe7add
2 changed files with 0 additions and 2 deletions

View File

@ -195,7 +195,6 @@ read(PNMReader *reader) {
}
copy_header_from(*reader);
_type = reader->get_type();
// We reassign y_size after reading because we might have read a
// truncated file.

View File

@ -38,7 +38,6 @@ read_header(const Filename &filename, PNMFileType *type) {
PNMReader *reader = make_reader(filename, type);
if (reader != (PNMReader *)NULL) {
(*this) = (*reader);
_type = reader->get_type();
delete reader;
return true;
}