Skip to content

Commit 692ca2a

Browse files
Finished removing old code
1 parent ee1bf7f commit 692ca2a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/Github/Api/Authorizations.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*/
1212
class Authorizations extends AbstractApi
1313
{
14-
use AcceptHeaderTrait;
15-
1614
/**
1715
* Check an application token.
1816
*
@@ -23,8 +21,6 @@ class Authorizations extends AbstractApi
2321
*/
2422
public function checkToken($clientId, $token = null)
2523
{
26-
$this->configurePreviewHeader();
27-
2824
return $this->post('/applications/'.rawurlencode($clientId).'/token', $token ? ['access_token' => $token] : []);
2925
}
3026

@@ -38,8 +34,6 @@ public function checkToken($clientId, $token = null)
3834
*/
3935
public function resetToken($clientId, $token = null)
4036
{
41-
$this->configurePreviewHeader();
42-
4337
return $this->patch('/applications/'.rawurlencode($clientId).'/token', $token ? ['access_token' => $token] : []);
4438
}
4539

@@ -53,8 +47,6 @@ public function resetToken($clientId, $token = null)
5347
*/
5448
public function deleteToken($clientId, $token = null)
5549
{
56-
$this->configurePreviewHeader();
57-
5850
$this->delete('/applications/'.rawurlencode($clientId).'/token', $token ? ['access_token' => $token] : []);
5951
}
6052

@@ -68,8 +60,6 @@ public function deleteToken($clientId, $token = null)
6860
*/
6961
public function deleteGrant($clientId, $token = null)
7062
{
71-
$this->configurePreviewHeader();
72-
7363
$this->delete('/applications/'.rawurlencode($clientId).'/grant', $token ? ['access_token' => $token] : []);
7464
}
7565
}

0 commit comments

Comments
 (0)