Remove some unused code

This commit is contained in:
Timothy Warren 2017-02-15 11:18:55 -05:00
parent 941a15c4f4
commit 470c39cf79
2 changed files with 0 additions and 19 deletions

View File

@ -120,8 +120,6 @@ class AnimeCollection extends Collection {
public function add($data) public function add($data)
{ {
$anime = (object)$this->anime_model->getAnimeById($data['id']); $anime = (object)$this->anime_model->getAnimeById($data['id']);
$util = $this->container->get('util');
$this->db->set([ $this->db->set([
'hummingbird_id' => $data['id'], 'hummingbird_id' => $data['id'],
'slug' => $anime->slug, 'slug' => $anime->slug,
@ -285,21 +283,5 @@ class AnimeCollection extends Collection {
'links' => $links '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 // End of AnimeCollectionModel.php

View File

@ -132,7 +132,6 @@ class DispatcherTest extends AnimeClient_TestCase {
$request = $this->container->get('request'); $request = $this->container->get('request');
$aura_router = $this->container->get('aura-router'); $aura_router = $this->container->get('aura-router');
$matcher = $aura_router->getMatcher();
// Check route setup // Check route setup