From fdbc2e86cd14662c76319a1fabd35850db7ae1ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Sat, 9 Feb 2019 15:01:12 +0100
Subject: [PATCH] Remove unused component

---
 .../answers-list/answers-list.component.html  |  8 -----
 .../answers-list/answers-list.component.scss  |  0
 .../answers-list.component.spec.ts            | 25 --------------
 .../answers-list/answers-list.component.ts    | 33 -------------------
 src/app/components/creator/creator.module.ts  |  2 --
 5 files changed, 68 deletions(-)
 delete mode 100644 src/app/components/creator/answers-list/answers-list.component.html
 delete mode 100644 src/app/components/creator/answers-list/answers-list.component.scss
 delete mode 100644 src/app/components/creator/answers-list/answers-list.component.spec.ts
 delete mode 100644 src/app/components/creator/answers-list/answers-list.component.ts

diff --git a/src/app/components/creator/answers-list/answers-list.component.html b/src/app/components/creator/answers-list/answers-list.component.html
deleted file mode 100644
index d1205e828..000000000
--- a/src/app/components/creator/answers-list/answers-list.component.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<mat-list>
-  <h3 mat-subheader>Answers</h3>
-  <mat-list-item *ngFor="let textAnswer of textAnswers">
-    <button mat-button routerLink="{{textAnswer.id}}">
-      {{textAnswer.body}}
-    </button>
-  </mat-list-item>
-</mat-list>
\ No newline at end of file
diff --git a/src/app/components/creator/answers-list/answers-list.component.scss b/src/app/components/creator/answers-list/answers-list.component.scss
deleted file mode 100644
index e69de29bb..000000000
diff --git a/src/app/components/creator/answers-list/answers-list.component.spec.ts b/src/app/components/creator/answers-list/answers-list.component.spec.ts
deleted file mode 100644
index 6ce3bb35a..000000000
--- a/src/app/components/creator/answers-list/answers-list.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { AnswersListComponent } from './answers-list.component';
-
-describe('AnswersListComponent', () => {
-  let component: AnswersListComponent;
-  let fixture: ComponentFixture<AnswersListComponent>;
-
-  beforeEach(async(() => {
-    TestBed.configureTestingModule({
-      declarations: [ AnswersListComponent ]
-    })
-    .compileComponents();
-  }));
-
-  beforeEach(() => {
-    fixture = TestBed.createComponent(AnswersListComponent);
-    component = fixture.componentInstance;
-    fixture.detectChanges();
-  });
-
-  it('should create', () => {
-    expect(component).toBeTruthy();
-  });
-});
diff --git a/src/app/components/creator/answers-list/answers-list.component.ts b/src/app/components/creator/answers-list/answers-list.component.ts
deleted file mode 100644
index b7cb7656a..000000000
--- a/src/app/components/creator/answers-list/answers-list.component.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-import { ContentAnswerService } from '../../../services/http/content-answer.service';
-import { AnswerText } from '../../../models/answer-text';
-import { ActivatedRoute } from '@angular/router';
-import { ContentService } from '../../../services/http/content.service';
-
-@Component({
-  selector: 'app-answers-list',
-  templateUrl: './answers-list.component.html',
-  styleUrls: ['./answers-list.component.scss']
-})
-export class AnswersListComponent implements OnInit {
-  textAnswers: AnswerText[];
-
-  constructor(
-    private contentService: ContentService,
-    private contentAnswerService: ContentAnswerService,
-    private route: ActivatedRoute) {
-  }
-
-  ngOnInit() {
-    this.route.params.subscribe(params => {
-      this.getAnswerTexts(params['contentId']);
-    });
-  }
-
-  getAnswerTexts(contentId: string): void {
-    this.contentAnswerService.getAnswers(contentId)
-      .subscribe(textAnswers => {
-        this.textAnswers = textAnswers;
-      });
-  }
-}
diff --git a/src/app/components/creator/creator.module.ts b/src/app/components/creator/creator.module.ts
index 2f569087b..e28e1994d 100644
--- a/src/app/components/creator/creator.module.ts
+++ b/src/app/components/creator/creator.module.ts
@@ -1,7 +1,6 @@
 import { NgModule } from '@angular/core';
 import { CommonModule } from '@angular/common';
 import { CreatorRoutingModule } from './creator-routing.module';
-import { AnswersListComponent } from './answers-list/answers-list.component';
 import { ContentChoiceCreatorComponent } from './content-choice-creator/content-choice-creator.component';
 import { ContentCreatePageComponent } from './content-create-page/content-create-page.component';
 import { ContentLikertCreatorComponent } from './content-likert-creator/content-likert-creator.component';
@@ -40,7 +39,6 @@ import { ContentEditComponent } from './_dialogs/content-edit/content-edit.compo
     })
   ],
   declarations: [
-    AnswersListComponent,
     ContentChoiceCreatorComponent,
     ContentCreatePageComponent,
     ContentLikertCreatorComponent,
-- 
GitLab