Remove unneeded unsets in encoding wrapper
This commit is contained in:
parent
e8d082208d
commit
bac8e13324
|
@ -334,12 +334,7 @@ class Encoding extends Wrapper {
|
||||||
*/
|
*/
|
||||||
public function rename($path1, $path2) {
|
public function rename($path1, $path2) {
|
||||||
// second name always NFC
|
// second name always NFC
|
||||||
$result = $this->storage->rename($this->findPathToUse($path1), $this->findPathToUse($path2));
|
return $this->storage->rename($this->findPathToUse($path1), $this->findPathToUse($path2));
|
||||||
if ($result) {
|
|
||||||
unset($this->namesCache[$path1]);
|
|
||||||
unset($this->namesCache[$path2]);
|
|
||||||
}
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -350,11 +345,7 @@ class Encoding extends Wrapper {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function copy($path1, $path2) {
|
public function copy($path1, $path2) {
|
||||||
$result = $this->storage->copy($this->findPathToUse($path1), $this->findPathToUse($path2));
|
return $this->storage->copy($this->findPathToUse($path1), $this->findPathToUse($path2));
|
||||||
if ($result) {
|
|
||||||
unset($this->namesCache[$path2]);
|
|
||||||
}
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -424,11 +415,7 @@ class Encoding extends Wrapper {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function touch($path, $mtime = null) {
|
public function touch($path, $mtime = null) {
|
||||||
$result = $this->storage->touch($this->findPathToUse($path), $mtime);
|
return $this->storage->touch($this->findPathToUse($path), $mtime);
|
||||||
if ($result) {
|
|
||||||
unset($this->namesCache[$path]);
|
|
||||||
}
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue