Skip to content

Commit

Permalink
Remove unused variables in CantoClient
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Sep 24, 2021
1 parent 79c7962 commit d66d8ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 0 additions & 2 deletions Classes/AssetSource/CantoAssetSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ public function getCantoClient(): CantoClient
if ($this->cantoClient === null) {
$this->cantoClient = new CantoClient(
$this->apiBaseUri,
$this->appId,
$this->appSecret,
$this->assetSourceIdentifier
);
}
Expand Down
16 changes: 1 addition & 15 deletions Classes/Service/CantoClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ final class CantoClient
*/
private $apiBaseUri;

/**
* @var string
*/
private $appId;

/**
* @var string
*/
private $appSecret;

/**
* @var string
*/
Expand Down Expand Up @@ -95,15 +85,11 @@ final class CantoClient

/**
* @param string $apiBaseUri
* @param string $appId
* @param string $appSecret
* @param string $serviceName
*/
public function __construct(string $apiBaseUri, string $appId, string $appSecret, string $serviceName)
public function __construct(string $apiBaseUri, string $serviceName)
{
$this->apiBaseUri = $apiBaseUri;
$this->appId = $appId;
$this->appSecret = $appSecret;
$this->serviceName = $serviceName;

$this->httpClient = new Client(['allow_redirects' => true]);
Expand Down

0 comments on commit d66d8ff

Please sign in to comment.