aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-05 20:32:20 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-06 11:01:58 +0200
commit872c181c7478d153ad8388932367472d15ce0671 (patch)
tree0431dc32034b41856b979ba8d2afd3eb62e74d5c
parentd80277c340eb737537a582112130f96e9361d7dd (diff)
downloadnextcloud-server-872c181c7478d153ad8388932367472d15ce0671.tar.gz
nextcloud-server-872c181c7478d153ad8388932367472d15ce0671.zip
chore: Drop dead private methods in /lib
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--lib/private/Files/Cache/Cache.php13
-rw-r--r--lib/private/Repair/NC22/LookupServerSendCheck.php9
-rw-r--r--lib/private/Session/Internal.php9
-rw-r--r--lib/private/Session/Memory.php12
4 files changed, 0 insertions, 43 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index 5af15700764..5aa05683631 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -564,19 +564,6 @@ class Cache implements ICache {
}
/**
- * Get all sub folders of a folder
- *
- * @param ICacheEntry $entry the cache entry of the folder to get the subfolders for
- * @return ICacheEntry[] the cache entries for the subfolders
- */
- private function getSubFolders(ICacheEntry $entry) {
- $children = $this->getFolderContentsById($entry->getId());
- return array_filter($children, function ($child) {
- return $child->getMimeType() == FileInfo::MIMETYPE_FOLDER;
- });
- }
-
- /**
* Remove all children of a folder
*
* @param ICacheEntry $entry the cache entry of the folder to remove the children of
diff --git a/lib/private/Repair/NC22/LookupServerSendCheck.php b/lib/private/Repair/NC22/LookupServerSendCheck.php
index 93475d88a2d..eb320593d98 100644
--- a/lib/private/Repair/NC22/LookupServerSendCheck.php
+++ b/lib/private/Repair/NC22/LookupServerSendCheck.php
@@ -45,15 +45,6 @@ class LookupServerSendCheck implements IRepairStep {
return 'Add background job to set the lookup server share state for users';
}
- private function shouldRun(): bool {
- $versionFromBeforeUpdate = $this->config->getSystemValueString('version', '0.0.0.0');
-
- // was added to 22.0.0.3
- return (version_compare($versionFromBeforeUpdate, '22.0.0.3', '<') && version_compare($versionFromBeforeUpdate, '22.0.0.0', '>='))
- ||
- (version_compare($versionFromBeforeUpdate, '21.0.1.2', '<') && version_compare($versionFromBeforeUpdate, '21.0.0.0', '>'));
- }
-
public function run(IOutput $output): void {
$this->jobList->add(LookupServerSendCheckBackgroundJob::class);
}
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php
index cae139018f8..e0f92c2e887 100644
--- a/lib/private/Session/Internal.php
+++ b/lib/private/Session/Internal.php
@@ -199,15 +199,6 @@ class Internal extends Session {
}
/**
- * @throws \Exception
- */
- private function validateSession() {
- if ($this->sessionClosed) {
- throw new SessionNotAvailableException('Session has been closed - no further changes to the session are allowed');
- }
- }
-
- /**
* @param string $functionName the full session_* function name
* @param array $parameters
* @param bool $silence whether to suppress warnings
diff --git a/lib/private/Session/Memory.php b/lib/private/Session/Memory.php
index b9b3dba54b7..fe71ec77692 100644
--- a/lib/private/Session/Memory.php
+++ b/lib/private/Session/Memory.php
@@ -30,7 +30,6 @@ declare(strict_types=1);
*/
namespace OC\Session;
-use Exception;
use OCP\Session\Exceptions\SessionNotAvailableException;
/**
@@ -113,15 +112,4 @@ class Memory extends Session {
$this->sessionClosed = false;
return $reopened;
}
-
- /**
- * In case the session has already been locked an exception will be thrown
- *
- * @throws Exception
- */
- private function validateSession() {
- if ($this->sessionClosed) {
- throw new Exception('Session has been closed - no further changes to the session are allowed');
- }
- }
}