Skip to content

Commit 0cf1f60

Browse files
committed
Remove commented code
1 parent db44153 commit 0cf1f60

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

src/commons/sagas/BackendSaga.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
import { Grading, GradingOverview, GradingQuestion } from '../../features/grading/GradingTypes';
1313
import {
1414
CHANGE_DATE_ASSESSMENT,
15-
// CHANGE_TEAM_SIZE_ASSESSMENT,
1615
DELETE_ASSESSMENT,
1716
PUBLISH_ASSESSMENT,
1817
UPLOAD_ASSESSMENT
@@ -1242,23 +1241,6 @@ function* BackendSaga(): SagaIterator {
12421241
}
12431242
);
12441243

1245-
// yield takeEvery(
1246-
// CHANGE_TEAM_SIZE_ASSESSMENT,
1247-
// function* (action: ReturnType<typeof actions.changeTeamSizeAssessment>): any {
1248-
// const tokens: Tokens = yield selectTokens();
1249-
// const id = action.payload.id;
1250-
// const maxTeamSize = action.payload.maxTeamSize;
1251-
1252-
// const resp: Response | null = yield updateAssessment(id, { maxTeamSize }, tokens);
1253-
// if (!resp || !resp.ok) {
1254-
// return yield handleResponseError(resp);
1255-
// }
1256-
1257-
// yield put(actions.fetchAssessmentOverviews());
1258-
// yield call(showSuccessMessage, 'Team size updated successfully!', 1000);
1259-
// }
1260-
// );
1261-
12621244
yield takeEvery(
12631245
UPDATE_ASSESSMENT_OVERVIEWS,
12641246
function* (action: ReturnType<typeof actions.updateAssessmentOverviews>): any {

src/features/groundControl/GroundControlActions.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { action } from 'typesafe-actions';
22

33
import {
44
CHANGE_DATE_ASSESSMENT,
5-
// CHANGE_TEAM_SIZE_ASSESSMENT,
65
DELETE_ASSESSMENT,
76
PUBLISH_ASSESSMENT,
87
UPLOAD_ASSESSMENT
@@ -11,9 +10,6 @@ import {
1110
export const changeDateAssessment = (id: number, openAt: string, closeAt: string) =>
1211
action(CHANGE_DATE_ASSESSMENT, { id, openAt, closeAt });
1312

14-
// export const changeTeamSizeAssessment = (id: number, maxTeamSize: number) =>
15-
// action(CHANGE_TEAM_SIZE_ASSESSMENT, { id, maxTeamSize });
16-
1713
export const deleteAssessment = (id: number) => action(DELETE_ASSESSMENT, id);
1814

1915
export const publishAssessment = (togglePublishTo: boolean, id: number) =>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export const CHANGE_DATE_ASSESSMENT = 'CHANGE_DATE_ASSESSMENT';
2-
// export const CHANGE_TEAM_SIZE_ASSESSMENT = 'CHANGE_TEAM_SIZE_ASSESSMENT';
32
export const DELETE_ASSESSMENT = 'DELETE_ASSESSMENT';
43
export const PUBLISH_ASSESSMENT = 'PUBLISH_ASSESSMENT';
54
export const UPLOAD_ASSESSMENT = 'UPLOAD_ASSESSMENT';

0 commit comments

Comments
 (0)