]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove leftover execute() and unused variables
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 31 Oct 2013 09:27:42 +0000 (10:27 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 31 Oct 2013 09:27:42 +0000 (10:27 +0100)
lib/files/cache/cache.php

index c664b8380cb93e5b682d10d5b9451a35eb03e271..ca739f8d1e2274df1b416b726259694fa7c9856d 100644 (file)
@@ -59,7 +59,7 @@ class Cache {
                if ($row = $result->fetchRow()) {
                        $this->numericId = $row['numeric_id'];
                } else {
-                       $result = \OC_DB::executeAudited(
+                       \OC_DB::executeAudited(
                                'INSERT INTO `*PREFIX*storages`(`id`) VALUES(?)',
                                array($this->storageId)
                        );
@@ -86,7 +86,7 @@ class Cache {
                        if ($row = $result->fetchRow()) {
                                $this->mimetypeIds[$mime] = $row['id'];
                        } else {
-                               $result = \OC_DB::executeAudited(
+                               \OC_DB::executeAudited(
                                        'INSERT INTO `*PREFIX*mimetypes`(`mimetype`) VALUES(?)',
                                        array($mime)
                                );
@@ -364,7 +364,7 @@ class Cache {
                                $this->remove($child['path']);
                        }
                }
-               $result = \OC_DB::executeAudited('
+               \OC_DB::executeAudited('
                        DELETE FROM `*PREFIX*filecache` WHERE `fileid` = ?',
                        array($entry['fileid'])
                );
@@ -401,7 +401,7 @@ class Cache {
 
                        foreach ($childEntries as $child) {
                                $targetPath = $target . substr($child['path'], $sourceLength);
-                               $result = \OC_DB::executeAudited($query,
+                               \OC_DB::executeAudited($query,
                                        array(
                                                $targetPath,
                                                md5($targetPath),
@@ -411,7 +411,7 @@ class Cache {
                        }
                }
 
-               $result = \OC_DB::executeAudited('
+               \OC_DB::executeAudited('
                        UPDATE `*PREFIX*filecache`
                        SET `path` = ?, `path_hash` = ?, `name` = ?, `parent` =?
                        WHERE `fileid` = ?',
@@ -423,12 +423,12 @@ class Cache {
         * remove all entries for files that are stored on the storage from the cache
         */
        public function clear() {
-               $result = \OC_DB::executeAudited('
+               \OC_DB::executeAudited('
                        DELETE FROM `*PREFIX*filecache` WHERE `storage` = ?',
                        array($this->numericId)
                );
 
-               $result = \OC_DB::executeAudited('
+               \OC_DB::executeAudited('
                        DELETE FROM `*PREFIX*storages` WHERE `id` = ?',
                        array($this->storageId)
                );
@@ -514,7 +514,6 @@ class Cache {
                        WHERE ' . $where . ' AND `storage` = ?',
                        array($mimetype, $this->numericId)
                );
-               $result = $query->execute(array($mimetype, $this->numericId));
                
                $files = array();
                while ($row = $result->fetchRow()) {