summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-11 21:27:41 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit8bf330fbae688779a81fe4b0a6a2f11d1b722238 (patch)
tree728b2dcd475444a40de8631c6a2173edd324f110
parentd3011e533c39d30f73be9e0c22ea09e42b36d9ea (diff)
downloadplantagenet-8bf330fbae688779a81fe4b0a6a2f11d1b722238.tar.gz
Delete unused code.
-rw-r--r--rules.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/rules.js b/rules.js
index f5f7255..5d5d603 100644
--- a/rules.js
+++ b/rules.js
@@ -1393,38 +1393,6 @@ function is_lord_at_friendly_locale(lord) {
return is_friendly_locale(loc)
}
-function used_seat_capability(lord, where, extra) {
- let seats = data.lords[lord].seats
- if (extra) {
- if (set_has(seats, where) && !extra.includes(where))
- return -1
- } else {
- if (set_has(seats, where))
- return -1
- }
- return -1
-}
-
-function for_each_seat(lord, fn, repeat = false) {
- let list = data.lords[lord].seats
-
- for (let seat of list)
- fn(seat)
-}
-
-function is_lord_seat(lord, here) {
- let result = false
- for_each_seat(lord, seat => {
- if (seat === here)
- result = true
- })
- return result
-}
-
-function is_lord_at_seat(lord) {
- return is_lord_seat(lord, get_lord_locale(lord))
-}
-
function has_locale_to_muster(lord) {
if (!has_enemy_lord(data.lords[lord].seat))
return true