Skip to content

Commit

Permalink
Database: removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 7, 2013
1 parent 8cd1c87 commit 341e926
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Nette/Database/Drivers/Sqlite2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ public function formatLike($value, $pos)
*/
public function normalizeRow($row, $statement)
{
if (!is_object($row)) {
$iterator = $row;
} elseif ($row instanceof \Traversable) {
$iterator = iterator_to_array($row);
} else {
$iterator = (array) $row;
}
foreach ($iterator as $key => $value) {
unset($row[$key]);
if ($key[0] === '[' || $key[0] === '"') {
Expand Down

1 comment on commit 341e926

@Majkl578
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wtf, you removed the declaration of $iterator with no replacement!

Please sign in to comment.