Skip to content

Commit 10f11bf

Browse files
committed
remove unused Anystack::getLicense()
1 parent f0f8d14 commit 10f11bf

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

app/Services/Anystack/Anystack.php

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use App\Models\User;
66
use Illuminate\Http\Client\HttpClientException;
7-
use Illuminate\Http\Client\Response;
87

98
final class Anystack
109
{
@@ -27,26 +26,10 @@ public static function findContact(string $contactUuid): ?User
2726
->first();
2827
}
2928

30-
public static function findContactOrFail(string $contactUuid): ?User
29+
public static function findContactOrFail(string $contactUuid): User
3130
{
3231
return User::query()
3332
->where('anystack_contact_id', $contactUuid)
3433
->firstOrFail();
3534
}
36-
37-
/**
38-
* Retrieve a license from AnyStack.
39-
*
40-
* @param string $productId The AnyStack product ID
41-
* @param string $licenseId The AnyStack license ID
42-
* @return Response The API response
43-
*
44-
* @throws \Illuminate\Http\Client\RequestException If the request fails
45-
*/
46-
public function getLicense(string $productId, string $licenseId): Response
47-
{
48-
return $this->client()
49-
->get("https://api.anystack.sh/v1/products/{$productId}/licenses/{$licenseId}")
50-
->throw();
51-
}
5235
}

0 commit comments

Comments
 (0)