aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/loader.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-10-31 14:15:09 +0000
committerLewis Russell <lewis6991@gmail.com>2024-10-31 14:15:09 +0000
commit03118c46abab81b12c903db88245552bad1b4861 (patch)
treea74382b629da190c4158f0f45d60a18fcfa369ae /runtime/lua/vim/loader.lua
parent1d4ba8c1edba064421b34c1197c3470a09798218 (diff)
downloadrneovim-03118c46abab81b12c903db88245552bad1b4861.tar.gz
rneovim-03118c46abab81b12c903db88245552bad1b4861.tar.bz2
rneovim-03118c46abab81b12c903db88245552bad1b4861.zip
refactor(loader): remove unused _topmods
Diffstat (limited to 'runtime/lua/vim/loader.lua')
-rw-r--r--runtime/lua/vim/loader.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/lua/vim/loader.lua b/runtime/lua/vim/loader.lua
index e86d33bf53..75adee344d 100644
--- a/runtime/lua/vim/loader.lua
+++ b/runtime/lua/vim/loader.lua
@@ -59,8 +59,6 @@ local Loader = {
VERSION = 4,
---@type table<string, table<string,vim.loader.ModuleInfo>>
_indexed = {},
- ---@type table<string, string[]>
- _topmods = {},
_loadfile = loadfile,
---@type LoaderStats
_stats = {
@@ -466,10 +464,6 @@ function Loader.lsmod(path)
end
if topname then
Loader._indexed[path][topname] = { modpath = modpath, modname = topname }
- Loader._topmods[topname] = Loader._topmods[topname] or {}
- if not vim.list_contains(Loader._topmods[topname], path) then
- table.insert(Loader._topmods[topname], path)
- end
end
end
end