Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Feb 11, 2024
1 parent a29c2fc commit 646f2cb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lua/startuptime.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
-- Returns true for boolean true and any non-zero number, otherwise returns
-- false.
local to_bool = function(x)
if type(x) == 'boolean' then
return x
elseif type(x) == 'number' then
return x ~= 0
end
return false
end

-- (documented in autoload/startuptime.vim)
local extract = function(file, event_types)
local other_event_type = event_types['other']
Expand Down Expand Up @@ -52,7 +41,6 @@ local extract = function(file, event_types)
item.elapsed = times[2]
item.start = item.finish - item.elapsed
end
local types = {}
table.insert(result[#result], item)
end
end
Expand Down

0 comments on commit 646f2cb

Please sign in to comment.