diff --git a/app/Builders/ConsultList.php b/app/Builders/ConsultList.php index a06e667c..6427f979 100644 --- a/app/Builders/ConsultList.php +++ b/app/Builders/ConsultList.php @@ -7,7 +7,6 @@ namespace App\Builders; -use App\Repos\Chapter as ChapterRepo; use App\Repos\Course as CourseRepo; use App\Repos\User as UserRepo; @@ -54,23 +53,6 @@ class ConsultList extends Builder return $result; } - public function getChapters(array $consults) - { - $ids = kg_array_column($consults, 'chapter_id'); - - $chapterRepo = new ChapterRepo(); - - $chapters = $chapterRepo->findByIds($ids, ['id', 'title']); - - $result = []; - - foreach ($chapters->toArray() as $chapter) { - $result[$chapter['id']] = $chapter; - } - - return $result; - } - public function getUsers(array $consults) { $ownerIds = kg_array_column($consults, 'owner_id'); diff --git a/app/Http/Home/Views/consult/reply.volt b/app/Http/Home/Views/consult/reply.volt index f2b67c07..5097598d 100644 --- a/app/Http/Home/Views/consult/reply.volt +++ b/app/Http/Home/Views/consult/reply.volt @@ -5,18 +5,10 @@ {% set update_url = url({'for':'home.consult.reply','id':consult.id}) %}