From b8e5d2d859a7730a430d7fba87b4bb08eb029ded Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Tue, 6 Nov 2018 13:22:31 +0100
Subject: [PATCH] Remove useless code and add translation-todos

---
 .../room-create/room-create.component.ts       |  2 +-
 .../room-delete/room-delete.component.html     |  1 +
 .../room-edit/room-edit.component.html         |  1 +
 .../creator-content-carousel-page.component.ts |  3 ---
 .../login-page/login-page.component.ts         |  1 -
 .../content-choice-participant.component.ts    | 18 ------------------
 .../room-participant-page.component.ts         |  2 +-
 7 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/src/app/components/creator/_dialogs/room-create/room-create.component.ts b/src/app/components/creator/_dialogs/room-create/room-create.component.ts
index 0deb11e13..a75f85879 100644
--- a/src/app/components/creator/_dialogs/room-create/room-create.component.ts
+++ b/src/app/components/creator/_dialogs/room-create/room-create.component.ts
@@ -4,7 +4,7 @@ import { Room } from '../../../../models/room';
 import { Router } from '@angular/router';
 import { NotificationService } from '../../../../services/util/notification.service';
 import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
-import { ContentService} from "../../../../services/http/content.service";
+import { ContentService } from '../../../../services/http/content.service';
 
 @Component({
   selector: 'app-room-create',
diff --git a/src/app/components/creator/_dialogs/room-delete/room-delete.component.html b/src/app/components/creator/_dialogs/room-delete/room-delete.component.html
index bd3e54708..5d1b26d2f 100644
--- a/src/app/components/creator/_dialogs/room-delete/room-delete.component.html
+++ b/src/app/components/creator/_dialogs/room-delete/room-delete.component.html
@@ -1,3 +1,4 @@
+<!-- TODO: Use TranslateService -->
 <h3>Are you sure?</h3>
 <p>Do you really want to delete room <strong>{{room.name}}</strong>? This action can not be undone.</p>
 <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
diff --git a/src/app/components/creator/_dialogs/room-edit/room-edit.component.html b/src/app/components/creator/_dialogs/room-edit/room-edit.component.html
index b50e0acdc..d4eb905d3 100644
--- a/src/app/components/creator/_dialogs/room-edit/room-edit.component.html
+++ b/src/app/components/creator/_dialogs/room-edit/room-edit.component.html
@@ -1,3 +1,4 @@
+<!-- TODO Use TranslateService -->
 <div *ngIf="editRoom">
   <mat-form-field class="input-block">
     <input [(ngModel)]="editRoom.name" #roomName matInput placeholder="Room name" name="room-name"/>
diff --git a/src/app/components/creator/creator-content-carousel-page/creator-content-carousel-page.component.ts b/src/app/components/creator/creator-content-carousel-page/creator-content-carousel-page.component.ts
index 572577733..0a6101984 100644
--- a/src/app/components/creator/creator-content-carousel-page/creator-content-carousel-page.component.ts
+++ b/src/app/components/creator/creator-content-carousel-page/creator-content-carousel-page.component.ts
@@ -1,8 +1,5 @@
 import { Component, OnInit } from '@angular/core';
 import { ContentType } from '../../../models/content-type.enum';
-import { AnswerOption } from '../../../models/answer-option';
-import { ContentChoice } from '../../../models/content-choice';
-import { ContentText } from '../../../models/content-text';
 import { ContentService } from '../../../services/http/content.service';
 import { ActivatedRoute } from '@angular/router';
 import { Content } from '../../../models/content';
diff --git a/src/app/components/login-page/login-page.component.ts b/src/app/components/login-page/login-page.component.ts
index 6eb97685d..c6b788cbd 100644
--- a/src/app/components/login-page/login-page.component.ts
+++ b/src/app/components/login-page/login-page.component.ts
@@ -10,7 +10,6 @@ import { UserRole } from '../../models/user-roles.enum';
   styleUrls: ['./login-page.component.scss']
 })
 export class LoginPageComponent implements OnInit {
-  // Make UserRole available to the template
   UserRole = UserRole;
   username: string;
   password: string;
diff --git a/src/app/components/participant/content-choice-participant/content-choice-participant.component.ts b/src/app/components/participant/content-choice-participant/content-choice-participant.component.ts
index 344593533..8675b7e67 100644
--- a/src/app/components/participant/content-choice-participant/content-choice-participant.component.ts
+++ b/src/app/components/participant/content-choice-participant/content-choice-participant.component.ts
@@ -27,24 +27,6 @@ export class ContentChoiceParticipantComponent implements OnInit {
 
   selectedSingleAnswer: string;
 
-  dummyContent: ContentChoice = new ContentChoice(
-    '2',
-    '1',
-    '1',
-    'Choice Content 1',
-    'This is the body of Choice Content 1',
-    1,
-    [],
-    [
-      new AnswerOption('Option 1', '0'),
-      new AnswerOption('Option 2', '10'),
-      new AnswerOption('Option 3', '20'),
-      new AnswerOption('Option 4', '30')
-    ],
-    [2, 3, 4],
-    false,
-    ContentType.BINARY
-  );
   checkedAnswers: CheckedAnswer[] = [];
   isAnswerSent = false;
 
diff --git a/src/app/components/participant/room-participant-page/room-participant-page.component.ts b/src/app/components/participant/room-participant-page/room-participant-page.component.ts
index 03f9b324d..dcbf261dd 100644
--- a/src/app/components/participant/room-participant-page/room-participant-page.component.ts
+++ b/src/app/components/participant/room-participant-page/room-participant-page.component.ts
@@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
 import { Room } from '../../../models/room';
 import { Location } from '@angular/common';
 import { RoomService } from '../../../services/http/room.service';
-import { ActivatedRoute, Router } from '@angular/router';
+import { ActivatedRoute } from '@angular/router';
 import { TranslateService } from '@ngx-translate/core';
 import { LanguageService } from '../../shared/LanguageService';
 
-- 
GitLab