Commit 58223514 authored by Jan Möbius's avatar Jan Möbius

Removed unused code

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@943 fdac6126-5c0c-442c-9429-916003d36597
parent 3964a002
......@@ -159,7 +159,6 @@ bool _OMReader_::read_binary(std::istream& _is, BaseImporter& _bi, Options& _opt
bytes_ += restore(_is, header_, swap);
size_t data_bytes;
while (!_is.eof()) {
bytes_ += restore(_is, chunk_header_, swap);
......@@ -175,7 +174,6 @@ bool _OMReader_::read_binary(std::istream& _is, BaseImporter& _bi, Options& _opt
// Read in the property data. If it is an anonymous or unknown named
// property, then skip data.
data_bytes = bytes_;
switch (chunk_header_.entity_) {
case OMFormat::Chunk::Entity_Vertex:
if (!read_binary_vertex_chunk(_is, _bi, _opt, swap))
......@@ -200,7 +198,7 @@ bool _OMReader_::read_binary(std::istream& _is, BaseImporter& _bi, Options& _opt
default:
return false;
}
data_bytes = bytes_ - data_bytes;
}
// File was successfully parsed.
......
......@@ -299,16 +299,14 @@ bool _OMWriter_::write_binary(std::ostream& _os, BaseExporter& _be,
{
nV = _be.get_vhandles(FaceHandle(i), vhandles);
if ( header.mesh_ == 'P' )
bytes += store( _os, vhandles.size(),
OMFormat::Chunk::Integer_16, swap );
bytes += store( _os, vhandles.size(), OMFormat::Chunk::Integer_16, swap );
for (size_t j=0; j < vhandles.size(); ++j)
{
using namespace OMFormat;
using namespace GenProg;
using namespace OMFormat;
using namespace GenProg;
bytes += store( _os, vhandles[j].idx(),
Chunk::Integer_Size(chunk_header.bits_), swap );
bytes += store( _os, vhandles[j].idx(), Chunk::Integer_Size(chunk_header.bits_), swap );
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment