From 266f068238922b32333c215705aec07d53e6bce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 31 Oct 2013 10:27:42 +0100 Subject: remove leftover execute() and unused variables --- lib/files/cache/cache.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'lib/files') diff --git a/lib/files/cache/cache.php b/lib/files/cache/cache.php index c664b8380cb..ca739f8d1e2 100644 --- a/lib/files/cache/cache.php +++ b/lib/files/cache/cache.php @@ -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()) { -- cgit v1.2.3