Skip to content
Snippets Groups Projects
Commit ced549c5 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

remove invalid comments and FIXMEs

parent 8b03ba39
No related branches found
No related tags found
No related merge requests found
......@@ -294,8 +294,6 @@ bool RegExpOptimize::A3( UnboundedRegExpAlternation * const & node )
 
// input can be \0 + \0, so at least one element must be preserved
 
// FIXME: alib2 uses shared_ptrs, rewrite this using remove_if then
for( auto it = node->elements.begin( ); it != node->elements.end( ); )
{
UnboundedRegExpEmpty const * const & empty = dynamic_cast<UnboundedRegExpEmpty const *>( * it );
......@@ -331,11 +329,6 @@ bool RegExpOptimize::A4( UnboundedRegExpAlternation * const & node )
* As we always sort in optimization, we can use the first version, but A4 must be __always__ called __after__ A2
*/
 
// uncomment if smart ptrs used
// node->elements.unique( [ ]( UnboundedRegExpElement const * const & a, UnboundedRegExpElement const * const & b ) -> bool {
// return *a == *b;
// } );
bool optimized = false;
if(node->elements.size() != 0) for( auto it = std::next( node->elements.begin( ) ); it != node->elements.end( ); )
{
......@@ -398,8 +391,6 @@ bool RegExpOptimize::A6( UnboundedRegExpConcatenation * const & node )
{
bool optimized = false;
 
// FIXME: alib2 uses shared_ptrs, rewrite this using remove_if then
for( auto it = node->elements.begin( ); it != node->elements.end( ); )
{
UnboundedRegExpEpsilon* epsilon = dynamic_cast<UnboundedRegExpEpsilon*>( * it );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment