diff --git a/core/lib/Drupal/Core/Session/SessionManager.php b/core/lib/Drupal/Core/Session/SessionManager.php index 82498050ad17a5dd0f4cfe2192d130a2809f9a28..f9496d394c280d4a282e31403985bdeec50ef1cd 100644 --- a/core/lib/Drupal/Core/Session/SessionManager.php +++ b/core/lib/Drupal/Core/Session/SessionManager.php @@ -263,29 +263,6 @@ public function delete($uid) { ->execute(); } - /** - * {@inheritdoc} - */ - public function isEnabled() { - return $this->writeSafeHandler->isSessionWritable(); - } - - /** - * {@inheritdoc} - */ - public function disable() { - $this->writeSafeHandler->setSessionWritable(FALSE); - return $this; - } - - /** - * {@inheritdoc} - */ - public function enable() { - $this->writeSafeHandler->setSessionWritable(TRUE); - return $this; - } - /** * {@inheritdoc} */ diff --git a/core/lib/Drupal/Core/Session/SessionManagerInterface.php b/core/lib/Drupal/Core/Session/SessionManagerInterface.php index fad62b787d083c045632903c8d8b14670a5f0c22..d194002fa466e7d8d053b0312e851d21ea2cbb39 100644 --- a/core/lib/Drupal/Core/Session/SessionManagerInterface.php +++ b/core/lib/Drupal/Core/Session/SessionManagerInterface.php @@ -22,43 +22,6 @@ interface SessionManagerInterface extends SessionStorageInterface { */ public function delete($uid); - /** - * Determines whether to save session data of the current request. - * - * @return bool - * FALSE if writing session data has been disabled. TRUE otherwise. - * - * @deprecated in Drupal 8.0.x, will be removed before Drupal 8.0.0 - * Use \Drupal\Core\Session\WriteSafeSessionHandler::isSessionWritable() - */ - public function isEnabled(); - - /** - * Temporarily disables saving of session data. - * - * This function allows the caller to temporarily disable writing of - * session data, should the request end while performing potentially - * dangerous operations, such as manipulating the global $user object. - * - * @see https://drupal.org/node/218104 - * - * @return $this - * - * @deprecated in Drupal 8.0.x, will be removed before Drupal 8.0.0 - * Use \Drupal\Core\Session\WriteSafeSessionHandler::setSessionWritable(FALSE) - */ - public function disable(); - - /** - * Re-enables saving of session data. - * - * @return $this - * - * @deprecated in Drupal 8.0.x, will be removed before Drupal 8.0.0 - * Use \Drupal\Core\Session\WriteSafeSessionHandler::setSessionWritable(True) - */ - public function enable(); - /** * Sets the write safe session handler. *