neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 03118c46abab81b12c903db88245552bad1b4861
parent 1d4ba8c1edba064421b34c1197c3470a09798218
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Thu, 31 Oct 2024 14:15:09 +0000

refactor(loader): remove unused _topmods

Diffstat:
Mruntime/lua/vim/loader.lua | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git 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