From 214f1458d98811de6f0be4dac9d7b4bc27a6e7f4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Feb 2004 15:27:45 +0000 Subject: [PATCH] Removed redundent byte swap on _version --- src/osgPlugins/ive/DataInputStream.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osgPlugins/ive/DataInputStream.cpp b/src/osgPlugins/ive/DataInputStream.cpp index 1bf703dce..d025f6e3b 100644 --- a/src/osgPlugins/ive/DataInputStream.cpp +++ b/src/osgPlugins/ive/DataInputStream.cpp @@ -80,12 +80,11 @@ DataInputStream::DataInputStream(std::istream* istream) if ( endianType != OPPOSITE_ENDIAN_TYPE ) { throw Exception("DataInputStream::DataInputStream(): This file has an unreadable endian type.") ; } - if (_verboseOutput) std::cout<<"DataInputStream::DataInputStream: Reading a byteswapped file" << std::endl ; + if (true/*_verboseOutput*/) std::cout<<"DataInputStream::DataInputStream: Reading a byteswapped file" << std::endl ; _byteswap = 1 ; } _version = readUInt(); - if (_byteswap) osg::swapBytes4((char *)&_version) ; // Are we trying to open a binary .ive file which version are newer than this library. if(_version>VERSION){