Skip to content

Commit

Permalink
[virtual layer] Cleanup - unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Jun 28, 2016
1 parent c6fb7b3 commit 73ac2f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/providers/virtual/qgsvirtuallayerqueryparser.cpp
Expand Up @@ -154,7 +154,6 @@ namespace QgsVirtualLayerQueryParser
Sqlite::Query::exec( db, viewStr );

QStringList columns;
bool hasInvalidName = false;
QVector<int> undefinedColumns;
TableDef tableDef;
{
Expand Down Expand Up @@ -193,7 +192,7 @@ namespace QgsVirtualLayerQueryParser
}
}

if ( hasInvalidName || undefinedColumns.size() == 0 )
if ( undefinedColumns.size() == 0 )
return tableDef;

// get the first row to introspect types
Expand Down

0 comments on commit 73ac2f3

Please sign in to comment.