From 720456672b1e86938e280a65bad8acfd45c74d19 Mon Sep 17 00:00:00 2001 From: Valentin Noel Date: Wed, 13 Nov 2013 18:54:01 +0100 Subject: [PATCH] minor clean in Comparator issue #31 --- libraries/Comparator/src/Comparator/Comparator.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/Comparator/src/Comparator/Comparator.cpp b/libraries/Comparator/src/Comparator/Comparator.cpp index 91c6cfe..1e8a7d3 100644 --- a/libraries/Comparator/src/Comparator/Comparator.cpp +++ b/libraries/Comparator/src/Comparator/Comparator.cpp @@ -42,7 +42,6 @@ void Comparator::check( spec_reader::Specification& spec, file_reader::FileReade while( ( node = element->next() ) != nullptr ) // if end of specification : stop { std::shared_ptr< basic_element::Element > previous = element; - switch( element->_status ) { case eStatusInvalidButOptional : @@ -67,7 +66,6 @@ void Comparator::check( spec_reader::Specification& spec, file_reader::FileReade size = file.getLength() - file.getPosition(); } - LOG_WARNING( "Size: " << size << "/" << file.getLength() - file.getPosition() ); char buffer[ size ]; if( ! file.readData( buffer, size ) ) throw std::runtime_error( "End of file, cannot read data" );