diff options
-rw-r--r-- | .build.yml | 5 | ||||
-rw-r--r-- | advtrains_interlocking/distant.lua | 6 |
2 files changed, 5 insertions, 6 deletions
@@ -6,6 +6,10 @@ packages: sources : - https://git.sr.ht/~gpcf/advtrains +artifacts: +- advtrains.luacov.report.out +- advtrains_interlocking.luacov.report.out + tasks: - install_mineunit : | @@ -21,4 +25,5 @@ tasks: ~/.luarocks/bin/mineunit -c ~/.luarocks/bin/mineunit -r sed -n '/^File/,$p' luacov.report.out + mv luacov.report.out ~/$i.luacov.report.out done diff --git a/advtrains_interlocking/distant.lua b/advtrains_interlocking/distant.lua index 22f1c9d..726c2b3 100644 --- a/advtrains_interlocking/distant.lua +++ b/advtrains_interlocking/distant.lua @@ -110,12 +110,6 @@ local function assign(main, dst, by, skip_update) end end -local function pre_occupy(dst, by) - local pts_dst = pts(dst) - unassign_dst(dst) - db_distant_of[pts_dst] = {nil, by} -end - --- Get the distant signals assigned to a main signal. -- @function get_distant -- @param main The position of the main signal. |