summaryrefslogtreecommitdiff
path: root/frontend/src/actions/simulation
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/actions/simulation')
-rw-r--r--frontend/src/actions/simulation/load-metric.js8
-rw-r--r--frontend/src/actions/simulation/playback.js15
-rw-r--r--frontend/src/actions/simulation/tick.js25
3 files changed, 0 insertions, 48 deletions
diff --git a/frontend/src/actions/simulation/load-metric.js b/frontend/src/actions/simulation/load-metric.js
deleted file mode 100644
index c59338ed..00000000
--- a/frontend/src/actions/simulation/load-metric.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export const CHANGE_LOAD_METRIC = 'CHANGE_LOAD_METRIC'
-
-export function changeLoadMetric(metric) {
- return {
- type: CHANGE_LOAD_METRIC,
- metric,
- }
-}
diff --git a/frontend/src/actions/simulation/playback.js b/frontend/src/actions/simulation/playback.js
deleted file mode 100644
index 5d7d8af2..00000000
--- a/frontend/src/actions/simulation/playback.js
+++ /dev/null
@@ -1,15 +0,0 @@
-export const SET_PLAYING = 'SET_PLAYING'
-
-export function playSimulation() {
- return {
- type: SET_PLAYING,
- playing: true,
- }
-}
-
-export function pauseSimulation() {
- return {
- type: SET_PLAYING,
- playing: false,
- }
-}
diff --git a/frontend/src/actions/simulation/tick.js b/frontend/src/actions/simulation/tick.js
deleted file mode 100644
index ca2027a4..00000000
--- a/frontend/src/actions/simulation/tick.js
+++ /dev/null
@@ -1,25 +0,0 @@
-export const GO_TO_TICK = 'GO_TO_TICK'
-export const SET_LAST_SIMULATED_TICK = 'SET_LAST_SIMULATED_TICK'
-
-export function incrementTick() {
- return (dispatch, getState) => {
- const { currentTick } = getState()
- dispatch(goToTick(currentTick + 1))
- }
-}
-
-export function goToTick(tick) {
- return (dispatch, getState) => {
- dispatch({
- type: GO_TO_TICK,
- tick,
- })
- }
-}
-
-export function setLastSimulatedTick(tick) {
- return {
- type: SET_LAST_SIMULATED_TICK,
- tick,
- }
-}