aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Session
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 /lib/private/Session
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>
Diffstat (limited to 'lib/private/Session')
-rw-r--r--lib/private/Session/Internal.php9
-rw-r--r--lib/private/Session/Memory.php12
2 files changed, 0 insertions, 21 deletions
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');
- }
- }
}