summaryrefslogtreecommitdiff
path: root/script/core/rename.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/rename.lua')
-rw-r--r--script/core/rename.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/script/core/rename.lua b/script/core/rename.lua
index e95186c1..f1ee93c5 100644
--- a/script/core/rename.lua
+++ b/script/core/rename.lua
@@ -182,20 +182,9 @@ end
---@async
local function ofField(source, newname, callback)
local key = guide.getKeyName(source)
- local mark = {}
local refs = vm.getRefs(source)
for _, ref in ipairs(refs) do
- if not mark[ref] then
- mark[ref] = true
ofFieldThen(key, ref, newname, callback)
- end
- end
- local defs = vm.getDefs(source)
- for _, def in ipairs(defs) do
- if not mark[def] then
- mark[def] = true
- ofFieldThen(key, def, newname, callback)
- end
end
end