From 6e7eb55cf9eec4b042f7ff80d8ab16a3c251a54f Mon Sep 17 00:00:00 2001 From: tris203 Date: Thu, 30 May 2024 15:56:08 +0100 Subject: [PATCH] refactor: remove unused code --- lua/precognition/init.lua | 3 --- tests/precognition/gutter_hints_spec.lua | 15 --------------- 2 files changed, 18 deletions(-) diff --git a/lua/precognition/init.lua b/lua/precognition/init.lua index 6bd248e..2f0c9db 100644 --- a/lua/precognition/init.lua +++ b/lua/precognition/init.lua @@ -410,9 +410,6 @@ local state = { build_gutter_hints = function() return build_gutter_hints end, - apply_gutter_hints = function() - return apply_gutter_hints - end, on_cursor_moved = function() return on_cursor_moved end, diff --git a/tests/precognition/gutter_hints_spec.lua b/tests/precognition/gutter_hints_spec.lua index 3344045..5db1f0c 100644 --- a/tests/precognition/gutter_hints_spec.lua +++ b/tests/precognition/gutter_hints_spec.lua @@ -140,18 +140,3 @@ describe("Gutter hints table", function() }, hints) end) end) - -local function dump(o) - if type(o) == "table" then - local s = "{ " - for k, v in pairs(o) do - if type(k) ~= "number" then - k = '"' .. k .. '"' - end - s = s .. "[" .. k .. "] = " .. dump(v) .. "," - end - return s .. "} " - else - return tostring(o) - end -end