summaryrefslogtreecommitdiff
path: root/frontend/src/actions/simulation/tick.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-02 18:39:28 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:21 +0200
commitf119fc78dda4d1e828dde04f378a63a93e3a0a7e (patch)
treebea1eace5d47f21a7ccb835c6a6079bc92e48710 /frontend/src/actions/simulation/tick.js
parent7f27a6370a0af25e1bf6ff8f46360c6c26c21e0b (diff)
Add current progress on frontend port
Diffstat (limited to 'frontend/src/actions/simulation/tick.js')
-rw-r--r--frontend/src/actions/simulation/tick.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/frontend/src/actions/simulation/tick.js b/frontend/src/actions/simulation/tick.js
index 72387d24..ca2027a4 100644
--- a/frontend/src/actions/simulation/tick.js
+++ b/frontend/src/actions/simulation/tick.js
@@ -1,6 +1,3 @@
-import { getDatacenterIdOfTick } from '../../util/timeline'
-import { setCurrentDatacenter } from '../topology/building'
-
export const GO_TO_TICK = 'GO_TO_TICK'
export const SET_LAST_SIMULATED_TICK = 'SET_LAST_SIMULATED_TICK'
@@ -13,27 +10,6 @@ export function incrementTick() {
export function goToTick(tick) {
return (dispatch, getState) => {
- const state = getState()
-
- let sections = []
- if (state.currentExperimentId !== -1) {
- const sectionIds =
- state.objects.path[
- state.objects.experiment[state.currentExperimentId].pathId
- ].sectionIds
-
- if (sectionIds) {
- sections = sectionIds.map(
- sectionId => state.objects.section[sectionId],
- )
- }
- }
-
- const newDatacenterId = getDatacenterIdOfTick(tick, sections)
- if (state.currentDatacenterId !== newDatacenterId) {
- dispatch(setCurrentDatacenter(newDatacenterId))
- }
-
dispatch({
type: GO_TO_TICK,
tick,