Remove some unused code
This commit is contained in:
parent
325d391c2e
commit
506cce02cf
@ -120,8 +120,6 @@ class AnimeCollection extends Collection {
|
||||
public function add($data)
|
||||
{
|
||||
$anime = (object)$this->anime_model->getAnimeById($data['id']);
|
||||
$util = $this->container->get('util');
|
||||
|
||||
$this->db->set([
|
||||
'hummingbird_id' => $data['id'],
|
||||
'slug' => $anime->slug,
|
||||
@ -285,21 +283,5 @@ class AnimeCollection extends Collection {
|
||||
'links' => $links
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Update genre information for the entire collection
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function update_genres()
|
||||
{
|
||||
// Get the anime collection
|
||||
$collection = $this->_get_collection();
|
||||
foreach ($collection as $anime)
|
||||
{
|
||||
// Get api information
|
||||
$this->update_genre($anime['hummingbird_id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
// End of AnimeCollectionModel.php
|
@ -132,7 +132,6 @@ class DispatcherTest extends AnimeClient_TestCase {
|
||||
|
||||
$request = $this->container->get('request');
|
||||
$aura_router = $this->container->get('aura-router');
|
||||
$matcher = $aura_router->getMatcher();
|
||||
|
||||
|
||||
// Check route setup
|
||||
|
Loading…
Reference in New Issue
Block a user