summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-09-28 15:18:18 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-09-28 15:18:18 +0200
commitc0d38bd3c2047c4e67cd7f930aa3ac3683915418 (patch)
tree31c8f42a23c90f7a896f7bf86cccd7c0f275c5df /rules.js
parentb565ed66b562d97ecaa9617e7567d3534cde5de5 (diff)
downloadalgeria-c0d38bd3c2047c4e67cd7f930aa3ac3683915418.tar.gz
remove unused
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/rules.js b/rules.js
index 0d9967b..17029de 100644
--- a/rules.js
+++ b/rules.js
@@ -211,26 +211,6 @@ function clear_unit_dispersed(u) {
game.units[u] &= ~UNIT_DISPERSED_MASK
}
-// moved
-
-function is_unit_moved(u) {
- return set_has(game.moved, u)
-}
-
-function set_unit_moved(u) {
- set_add(game.moved, u)
-}
-
-// fired
-
-function is_unit_fired(u) {
- return set_has(game.fired, u)
-}
-
-function set_unit_fired(u) {
- set_add(game.fired, u)
-}
-
function eliminate_unit(u) {
game.units[u] = 0
set_unit_loc(u, ELIMINATED)
@@ -423,8 +403,6 @@ exports.setup = function (seed, scenario, options) {
naval: 0,
units: new Array(unit_count).fill(0),
- moved: [],
- fired: [],
is_morocco_tunisia_independent: false,
border_zone: 0,
@@ -857,10 +835,6 @@ function log_sep() {
// === COMMON LIBRARY ===
-function log(msg) {
- game.log.push(msg)
-}
-
function clear_undo() {
game.undo.length = 0
}