Removed unused variables

This commit is contained in:
rxi 2020-05-07 22:40:34 +01:00
parent de94c8a13c
commit 95bdb07d49
3 changed files with 1 additions and 3 deletions

View File

@ -216,7 +216,6 @@ end
local function draw_suggestions_box(self)
local lh = self:get_suggestion_line_height()
local dh = style.divider_size
local offsety = self:get_line_text_y_offset()
local x, _ = self:get_line_screen_position()
local h = math.ceil(self.suggestions_height)
local rx, ry, rw, rh = self.position.x, self.position.y - h - dh, self.size.x, h

View File

@ -60,7 +60,7 @@ end
local function fuzzy_match_items(items, needle)
local res = {}
for i, item in ipairs(items) do
for _, item in ipairs(items) do
local score = system.fuzzy_match(tostring(item), needle)
if score then
table.insert(res, { text = item, score = score })

View File

@ -2,7 +2,6 @@ local core = require "core"
local common = require "core.common"
local config = require "core.config"
local style = require "core.style"
local syntax = require "core.syntax"
local translate = require "core.doc.translate"
local View = require "core.view"