summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-19 16:49:44 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-20 09:33:59 +0200
commitbac8e13324f888e3d23851528943c9ae9f34cf12 (patch)
treeb1778c10fc4b84b99224b8ec3682c465f79d716f /lib/private
parente8d082208d241b3e25150222cacb8d1b4a5b6f12 (diff)
downloadnextcloud-server-bac8e13324f888e3d23851528943c9ae9f34cf12.tar.gz
nextcloud-server-bac8e13324f888e3d23851528943c9ae9f34cf12.zip
Remove unneeded unsets in encoding wrapper
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/Storage/Wrapper/Encoding.php19
1 files changed, 3 insertions, 16 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Encoding.php b/lib/private/Files/Storage/Wrapper/Encoding.php
index b35773b1997..0171dfe19b7 100644
--- a/lib/private/Files/Storage/Wrapper/Encoding.php
+++ b/lib/private/Files/Storage/Wrapper/Encoding.php
@@ -334,12 +334,7 @@ class Encoding extends Wrapper {
*/
public function rename($path1, $path2) {
// second name always NFC
- $result = $this->storage->rename($this->findPathToUse($path1), $this->findPathToUse($path2));
- if ($result) {
- unset($this->namesCache[$path1]);
- unset($this->namesCache[$path2]);
- }
- return $result;
+ return $this->storage->rename($this->findPathToUse($path1), $this->findPathToUse($path2));
}
/**
@@ -350,11 +345,7 @@ class Encoding extends Wrapper {
* @return bool
*/
public function copy($path1, $path2) {
- $result = $this->storage->copy($this->findPathToUse($path1), $this->findPathToUse($path2));
- if ($result) {
- unset($this->namesCache[$path2]);
- }
- return $result;
+ return $this->storage->copy($this->findPathToUse($path1), $this->findPathToUse($path2));
}
/**
@@ -424,11 +415,7 @@ class Encoding extends Wrapper {
* @return bool
*/
public function touch($path, $mtime = null) {
- $result = $this->storage->touch($this->findPathToUse($path), $mtime);
- if ($result) {
- unset($this->namesCache[$path]);
- }
- return $result;
+ return $this->storage->touch($this->findPathToUse($path), $mtime);
}
/**