From 5e375d9092efd1e40a0ed37dfd2c208598b27bb9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 20 Jun 2022 17:56:59 +0200 Subject: Revert "store unencrypted size in the unencrypted_size column" This reverts commit 8238582e59b7b6ec03318bcf81bf47cce54af320. Signed-off-by: Robin Appelman --- lib/private/Files/Cache/CacheEntry.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/private/Files/Cache/CacheEntry.php') 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']; - } - } } -- cgit v1.2.3