From 850aa25879c28d6b8f7718c44e905bde4463c24d Mon Sep 17 00:00:00 2001 From: Guldoman Date: Mon, 21 Oct 2024 18:28:55 +0200 Subject: [PATCH] treeview: remove unused code (#1895) It caused a lot of useless `system.absolute_path` calls. --- data/plugins/treeview.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index 9037d51a..cbeea267 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -442,9 +442,6 @@ function TreeView:draw() self:draw_background(style.background2) local _y, _h = self.position.y, self.size.y - local doc = core.active_view.doc - local active_filename = doc and system.absolute_path(doc.filename or "") - for item, x,y,w,h in self:each_item() do if y + h >= _y and y < _y + _h then self:draw_item(item,