From: Tim Düsterhus Date: Thu, 22 Apr 2021 13:45:48 +0000 (+0200) Subject: Remove SessionHandler::getAcpSessions() X-Git-Tag: 5.4.0_Alpha_1~57 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff21b63db451d729bb38d2a8f8ea5bd2d51bb429;p=GitHub%2FWoltLab%2FWCF.git Remove SessionHandler::getAcpSessions() There's no such thing like an ACP session any longer. This method was added in 5.4 and thus can directly be removed again. see dca6c80bfded3d7895487e12c78874a884060be2 --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 1be28d4099..e0883c8a14 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -1406,18 +1406,6 @@ final class SessionHandler extends SingletonFactory return $this->getSessions($user, false); } - /** - * Returns all acp sessions for a specific user. - * - * @return Session[] - * @throws \InvalidArgumentException if the given user is a guest. - * @since 5.4 - */ - public function getAcpSessions(User $user): array - { - return $this->getSessions($user, true); - } - /** * Returns all sessions for a specific user. *