Fix C4702 (unreachable code) in generators

Generators might get removed anyway, but at least compilation wont
trigger Wx on MSVC in the meantime.
This commit is contained in:
Martin Hořeňovský 2017-05-08 00:58:44 +02:00
parent d7eb041ab5
commit 7e14232924
1 changed files with 0 additions and 1 deletions

View File

@ -98,7 +98,6 @@ public:
index += generator->size();
}
CATCH_INTERNAL_ERROR( "Indexed past end of generated range" );
return T(); // Suppress spurious "not all control paths return a value" warning in Visual Studio - if you know how to fix this please do so
}
void add( const IGenerator<T>* generator ) {