Skip to content

Commit

Permalink
Remove private properties and methods
Browse files Browse the repository at this point in the history
See #37153 (comment)

Co-authored-by: sergeymitr <[email protected]>
  • Loading branch information
jeherve and sergeymitr committed May 1, 2024
1 parent 4e3492f commit 7745ce8
Showing 1 changed file with 0 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,6 @@
* @deprecated $$next-version$$
*/
class Jetpack_SSO_User_Admin {

/**
* Instance of WP_User_Query.
*
* @deprecated $$next-version$$
*
* @var $user_search
*/
private static $user_search = null;
/**
* Array of cached invites.
*
* @deprecated $$next-version$$
*
* @var $cached_invites
*/
private static $cached_invites = null;

/**
* Instance of Jetpack Tracking.
*
* @deprecated $$next-version$$
*
* @var $instance
*/
private static $tracking = null;

/**
* Constructor function.
*
Expand Down Expand Up @@ -231,16 +204,6 @@ public function jetpack_user_connected_th( $columns ) {
_deprecated_function( __METHOD__, 'jetpack-$$next-version$$', 'Automattic\\Jetpack\\Connection\\SSO\\User_Admin->jetpack_user_connected_th' );
}

/**
* Executed when our WP_User_Query instance is set, and we don't have cached invites.
* This function uses the user emails and the 'are-users-invited' endpoint to build the cache.
*
* @deprecated $$next-version$$
*/
private static function rebuild_invite_cache() {
_deprecated_function( __METHOD__, 'jetpack-$$next-version$$', 'Automattic\\Jetpack\\Connection\\SSO\\User_Admin->rebuild_invite_cache' );
}

/**
* Check if there is cached invite for a user email.
*
Expand All @@ -255,34 +218,6 @@ public static function get_pending_cached_wpcom_invite( $email ) {
_deprecated_function( __METHOD__, 'jetpack-$$next-version$$', 'Automattic\\Jetpack\\Connection\\SSO\\User_Admin->get_pending_cached_wpcom_invite' );
}

/**
* Check if a given user is invited to the site.
*
* @access private
* @static
*
* @deprecated $$next-version$$
*
* @param int $user_id The user ID.
*/
private static function has_pending_wpcom_invite( $user_id ) {
_deprecated_function( __METHOD__, 'jetpack-$$next-version$$', 'Automattic\\Jetpack\\Connection\\SSO\\User_Admin->has_pending_wpcom_invite' );
}

/**
* Delete an external contributor from the site.
*
* @access private
* @static
*
* @deprecated $$next-version$$
*
* @param int $user_id The user ID.
*/
private static function delete_external_contributor( $user_id ) {
_deprecated_function( __METHOD__, 'jetpack-$$next-version$$', 'Automattic\\Jetpack\\Connection\\SSO\\User_Admin->delete_external_contributor' );
}

/**
* Show Jetpack SSO user connection status.
*
Expand Down

0 comments on commit 7745ce8

Please sign in to comment.