From 95bdb07d49a33f7ecdb8829bbd66bfeb4213fb33 Mon Sep 17 00:00:00 2001 From: rxi Date: Thu, 7 May 2020 22:40:34 +0100 Subject: [PATCH] Removed unused variables --- data/core/commandview.lua | 1 - data/core/common.lua | 2 +- data/core/docview.lua | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/data/core/commandview.lua b/data/core/commandview.lua index ceb32b5..ccd8b4b 100644 --- a/data/core/commandview.lua +++ b/data/core/commandview.lua @@ -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 diff --git a/data/core/common.lua b/data/core/common.lua index 6e8c65e..1fc91b8 100644 --- a/data/core/common.lua +++ b/data/core/common.lua @@ -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 }) diff --git a/data/core/docview.lua b/data/core/docview.lua index e7fbfaa..9c91b99 100644 --- a/data/core/docview.lua +++ b/data/core/docview.lua @@ -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"