treeview: remove unused code (#1895)

It caused a lot of useless `system.absolute_path` calls.
This commit is contained in:
Guldoman 2024-10-21 18:28:55 +02:00 committed by GitHub
parent 219dc55eae
commit 850aa25879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -442,9 +442,6 @@ function TreeView:draw()
self:draw_background(style.background2) self:draw_background(style.background2)
local _y, _h = self.position.y, self.size.y 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 for item, x,y,w,h in self:each_item() do
if y + h >= _y and y < _y + _h then if y + h >= _y and y < _y + _h then
self:draw_item(item, self:draw_item(item,