Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions includes/class-connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,55 +465,6 @@ public function e_set( string $check_key, string $data, bool $autoload = false )
return $saved;
}

/**
* Secure API access token.
*
* @since 1.0.0
*
* @TODO Remove. Unused.
*
* @throws Exception Exception.
*
* @param string $access_token API access token.
*/
public function update_token( string $access_token, string $refresh_token ) {
$this->e_set( 'ctct_access_token', $access_token, true );
$this->e_set( 'ctct_refresh_token', $refresh_token, true );
}

/**
* Get saved API token.
*
* @since 1.0.0
*
* @TODO Remove. Unused.
*
* @throws Exception Throws Exception if encountered while attempting to save API token.
*
* @return string Token.
*/
public function get_api_token() {
$this->check_deleted_legacy_token();

return $this->e_get( 'ctct_access_token' );
}

/**
* If we have a legacy token, let's re-save it.
*
* @TODO Remove. Unused.
*
* @since 1.0.0
*/
public function check_deleted_legacy_token() {
$legacy = get_option( '_ctct_access_token' );

if ( $legacy ) {
$this->update_token( $legacy, null );
delete_option( '_ctct_access_token' );
}
}

/**
* Get our encrypt key.
*
Expand Down
2 changes: 0 additions & 2 deletions includes/class-lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* @author Constant Contact
* @since 1.0.0
*
* todo: when user is disconnected then the lists should be removed
*
* phpcs:disable WebDevStudios.All.RequireAuthor -- Don't require author tag in docblocks.
*/

Expand Down