1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-16 23:00:24 +02:00

Remove unused variables and assignments

The removal of unused variables can improve the detection of mistakes with luacheck;
for example, it can detect if the wrong argument is passed to a function because of a copy-paste mistake.

Setting `src_data` and `dst_data` to `nil` in `worldedit.stack2`,
which might enable an earlier garbage collection,
looks like an unneeded micro-optimisation.
This commit is contained in:
HybridDog
2021-01-17 16:59:29 +01:00
parent bf55f52197
commit 0632f6b41b
5 changed files with 7 additions and 12 deletions

View File

@ -4,5 +4,4 @@ read_globals = {"minetest", "vector", "VoxelArea", "ItemStack",
}
globals = {"worldedit"}
-- Ignore these errors until someone decides to fix them
ignore = {"211", "212", "213", "311", "411", "412", "421", "422",
"431", "432", "631"}
ignore = {"212", "213", "411", "412", "421", "422", "431", "432", "631"}