Remove obsolete social media privacy settings-related methods (#4308)
authorMatthias Schmidt <gravatronics@live.com>
Tue, 22 Jun 2021 14:43:38 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Jun 2021 14:43:38 +0000 (16:43 +0200)
These methods have had no effect for several years (since 527a8fc63908aa175c60b08b4d3ee368dbfdb274).

wcfsetup/install/files/lib/data/user/User.class.php
wcfsetup/install/files/lib/data/user/UserAction.class.php

index d890a73a7580f6448f699bfeb4a00ed94098cc8b..fabe62d4c040245d906bf60a5e8886e99334e7ff 100644 (file)
@@ -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.
      *
index baa7a06c32b5f5fa7c5067d59d1da0757563a035..2bb22707cddfe24e3a598bb6673d473807835218 100644 (file)
@@ -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
      */