[TASK] Typo3DbBackend: Drop non-functional code
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 13 Apr 2013 12:56:15 +0000 (14:56 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sat, 13 Apr 2013 17:11:01 +0000 (19:11 +0200)
array_fill_keys() used without function

Change-Id: Ib52e8d58a64fbba3eefc1fa28b0bb8a9dbbe30da
Resolves: #47185
Releases: 1.3, 4.7, 6.0, 6.1
Reviewed-on: https://review.typo3.org/19933
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php

index 7a22eb5..ab6d684 100644 (file)
@@ -926,9 +926,6 @@ class Tx_Extbase_Persistence_Storage_Typo3DbBackend implements Tx_Extbase_Persis
                $rows = array();
                while ($row = $this->databaseHandle->sql_fetch_assoc($result)) {
                        if (is_array($row)) {
-                               // TODO Check if this is necessary, maybe the last line is enough
-                               $arrayKeys = range(0, count($row));
-                               array_fill_keys($arrayKeys, $row);
                                $rows[] = $row;
                        }
                }
@@ -1068,4 +1065,4 @@ class Tx_Extbase_Persistence_Storage_Typo3DbBackend implements Tx_Extbase_Persis
        }
 }
 
-?>
\ No newline at end of file
+?>