update unusedmethods loplugin to update unused return values

Change-Id: I825d022d09282bc9b6cffd9178e40e4090d335da
This commit is contained in:
Noel Grandin
2016-01-11 08:41:55 +02:00
parent f7c23897a3
commit 86bb6fdf9c
3 changed files with 79 additions and 12 deletions

View File

@@ -61,8 +61,8 @@ const Stmt* Plugin::parentStmt( const Stmt* stmt )
{
if( parents.empty())
buildParents( compiler );
if(parents.count(stmt)!=1)stmt->dump();
assert( parents.count( stmt ) == 1 );
//if(parents.count(stmt)!=1)stmt->dump();
//assert( parents.count( stmt ) == 1 );
return parents[ stmt ];
}
@@ -70,7 +70,7 @@ Stmt* Plugin::parentStmt( Stmt* stmt )
{
if( parents.empty())
buildParents( compiler );
assert( parents.count( stmt ) == 1 );
//assert( parents.count( stmt ) == 1 );
return const_cast< Stmt* >( parents[ stmt ] );
}