Removed unecessary duplicates.

This commit is contained in:
Adam Harrison
2021-07-20 14:50:40 -04:00
parent 0777a6f0b8
commit c461cfae93
3 changed files with 0 additions and 80 deletions
-19
View File
@@ -18,25 +18,6 @@ local function split_lines(text)
end
local function splice(t, at, remove, insert)
insert = insert or {}
local offset = #insert - remove
local old_len = #t
if offset < 0 then
for i = at - offset, old_len - offset do
t[i + offset] = t[i]
end
elseif offset > 0 then
for i = old_len, at, -1 do
t[i + offset] = t[i]
end
end
for i, item in ipairs(insert) do
t[at + i - 1] = item
end
end
function Doc:new(filename, abs_filename, new_file)
self.new_file = new_file
self:reset()