From dccb2996489c1423e096f366086c9b6b7a2f0e82 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 22 Jun 2021 16:43:38 +0200 Subject: [PATCH] Remove obsolete social media privacy settings-related methods (#4308) These methods have had no effect for several years (since 527a8fc63908aa175c60b08b4d3ee368dbfdb274). --- .../files/lib/data/user/User.class.php | 16 --------- .../files/lib/data/user/UserAction.class.php | 36 ------------------- 2 files changed, 52 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index d890a73a75..fabe62d4c0 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -622,22 +622,6 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl ]); } - /** - * Returns the social network privacy settings of the user. - * @return bool[] - * @deprecated 3.0 - * - */ - public function getSocialNetworkPrivacySettings() - { - return [ - 'facebook' => false, - 'google' => false, - 'reddit' => false, - 'twitter' => false, - ]; - } - /** * Returns the registration ip address, attempts to convert to IPv4. * diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index baa7a06c32..2bb22707cd 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -1130,42 +1130,6 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio } } - /** - * Validates parameters to retrieve the social network privacy settings. - * @deprecated 3.0 - */ - public function validateGetSocialNetworkPrivacySettings() - { - // does nothing - } - - /** - * Returns the social network privacy settings. - * @deprecated 3.0 - */ - public function getSocialNetworkPrivacySettings() - { - // does nothing - } - - /** - * Validates the 'saveSocialNetworkPrivacySettings' action. - * @deprecated 3.0 - */ - public function validateSaveSocialNetworkPrivacySettings() - { - // does nothing - } - - /** - * Saves the social network privacy settings. - * @deprecated 3.0 - */ - public function saveSocialNetworkPrivacySettings() - { - // does nothing - } - /** * @since 5.3 */ -- 2.20.1