summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-11-26 13:16:22 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-11-26 15:32:47 +0100
commit5097d4dc05b6591f656b17e769a78ddaa7fc0c6d (patch)
treeabf320c783a574c73e29cdee743f0bfa1d864447 /lib/private/user
parenta2457b5fb9f1ef9fda82afc4cf7dc712d14488c9 (diff)
downloadnextcloud-server-5097d4dc05b6591f656b17e769a78ddaa7fc0c6d.tar.gz
nextcloud-server-5097d4dc05b6591f656b17e769a78ddaa7fc0c6d.zip
remove deprecated \OC:$session
Diffstat (limited to 'lib/private/user')
-rw-r--r--lib/private/user/session.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/private/user/session.php b/lib/private/user/session.php
index ca0265dfb23..94abaca3e76 100644
--- a/lib/private/user/session.php
+++ b/lib/private/user/session.php
@@ -88,15 +88,6 @@ class Session implements IUserSession, Emitter {
* @return \OCP\ISession
*/
public function getSession() {
- // fetch the deprecated \OC::$session if it changed for backwards compatibility
- if (isset(\OC::$session) && \OC::$session !== $this->session) {
- \OC::$server->getLogger()->warning(
- 'One of your installed apps still seems to use the deprecated ' .
- '\OC::$session and has replaced it with a new instance. Please file a bug against it.' .
- 'Closing and replacing session in UserSession instance.'
- );
- $this->setSession(\OC::$session);
- }
return $this->session;
}
@@ -111,14 +102,6 @@ class Session implements IUserSession, Emitter {
}
$this->session = $session;
$this->activeUser = null;
-
- // maintain deprecated \OC::$session
- if (\OC::$session !== $this->session) {
- if (\OC::$session instanceof \OCP\ISession) {
- \OC::$session->close();
- }
- \OC::$session = $session;
- }
}
/**