зеркало из https://github.com/nextcloud/server.git
chore: Drop dead private methods in /lib
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Родитель
d80277c340
Коммит
872c181c74
|
@ -563,19 +563,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
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -198,15 +198,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
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче