Skip to content

Commit

Permalink
minor clean in Comparator
Browse files Browse the repository at this point in the history
issue #31
  • Loading branch information
Valentin Noel committed Nov 13, 2013
1 parent d281c31 commit 7204566
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libraries/Comparator/src/Comparator/Comparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand All @@ -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" );
Expand Down

0 comments on commit 7204566

Please sign in to comment.