diff --git a/lua/gopher/_utils/init.lua b/lua/gopher/_utils/init.lua index 136717d..7ce9e00 100644 --- a/lua/gopher/_utils/init.lua +++ b/lua/gopher/_utils/init.lua @@ -1,16 +1,5 @@ local utils = {} -local TITLE = "gopher.nvim" - ----@param t table ----@return boolean -function utils.is_tbl_empty(t) - if t == nil then - return true - end - return next(t) == nil -end - ---@param msg string ---@param lvl number function utils.deferred_notify(msg, lvl) diff --git a/spec/units/utils_spec.lua b/spec/units/utils_spec.lua index dcf94f2..ea2f30c 100644 --- a/spec/units/utils_spec.lua +++ b/spec/units/utils_spec.lua @@ -1,16 +1,6 @@ describe("gopher._utils", function() local u = require "gopher._utils" - describe(".is_tbl_empty()", function() - it("it is empty", function() - assert.are.same(true, u.is_tbl_empty {}) - end) - - it("it is not empty", function() - assert.are.same(false, u.is_tbl_empty { first = "1", second = 2 }) - end) - end) - describe(".sreq()", function() it("can require existing module", function() assert.are.same(require "gopher", u.sreq "gopher")