aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/CacheEntry.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-06-20 17:56:59 +0200
committerRobin Appelman <robin@icewind.nl>2022-08-16 12:07:14 +0200
commit5e375d9092efd1e40a0ed37dfd2c208598b27bb9 (patch)
tree1f6004229a3299f57059e913bd507f0193f6932f /lib/private/Files/Cache/CacheEntry.php
parent6e0123a1d0343b6b850ef6e3b341acf082fa0dce (diff)
downloadnextcloud-server-5e375d9092efd1e40a0ed37dfd2c208598b27bb9.tar.gz
nextcloud-server-5e375d9092efd1e40a0ed37dfd2c208598b27bb9.zip
Revert "store unencrypted size in the unencrypted_size column"
This reverts commit 8238582e59b7b6ec03318bcf81bf47cce54af320. Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/CacheEntry.php')
-rw-r--r--lib/private/Files/Cache/CacheEntry.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/private/Files/Cache/CacheEntry.php b/lib/private/Files/Cache/CacheEntry.php
index 8ac76acf6d1..12f0273fb6e 100644
--- a/lib/private/Files/Cache/CacheEntry.php
+++ b/lib/private/Files/Cache/CacheEntry.php
@@ -132,12 +132,4 @@ class CacheEntry implements ICacheEntry {
public function __clone() {
$this->data = array_merge([], $this->data);
}
-
- public function getUnencryptedSize(): int {
- if (isset($this->data['unencrypted_size']) && $this->data['unencrypted_size'] > 0) {
- return $this->data['unencrypted_size'];
- } else {
- return $this->data['size'];
- }
- }
}