Skip to content

Commit 8b6226a

Browse files
committed
Remove bogus function as it's not exists anymore in API and cause errors
1 parent 8a422c5 commit 8b6226a

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

lib/Github/Api/Repo.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -81,35 +81,6 @@ public function create($name, $description = '', $homepage = '', $public = true)
8181
));
8282
}
8383

84-
/**
85-
* Delete repo
86-
*
87-
* @param string $name name of the repository
88-
* @param string $token delete token
89-
* @param string $force force repository deletion
90-
*
91-
* @return string|array returns delete_token or repo status
92-
*/
93-
public function delete($name, $token = null, $force = false)
94-
{
95-
//todo old api
96-
if ($token === null) {
97-
$response = $this->post('repos/delete/'.urlencode($name));
98-
99-
$token = $response['delete_token'];
100-
101-
if (!$force) {
102-
return $token;
103-
}
104-
}
105-
106-
$response = $this->post('repos/delete/'.urlencode($name), array(
107-
'delete_token' => $token,
108-
));
109-
110-
return $response;
111-
}
112-
11384
/**
11485
* Set information of a repository
11586
* @link http://developer.github.com/v3/repos/

0 commit comments

Comments
 (0)