Skip to content

Commit 5fbd674

Browse files
committed
refactor(#2826): remove unused view member height
1 parent f1e9d51 commit 5fbd674

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lua/nvim-tree/explorer/view.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ local Class = require("nvim-tree.classic")
1414
---@field private explorer Explorer
1515
---@field private adaptive_size boolean
1616
---@field private winopts table
17-
---@field private height integer
1817
---@field private initial_width integer
1918
---@field private width (fun():integer)|integer|string
2019
---@field private max_width integer
@@ -35,7 +34,6 @@ function View:new(args)
3534

3635
self.explorer = args.explorer
3736
self.adaptive_size = false
38-
self.height = self.explorer.opts.view.height
3937
self.side = (self.explorer.opts.view.side == "right") and "right" or "left"
4038
self.live_filter = { prev_focused_node = nil, }
4139
self.bufnr_by_tab = {}
@@ -419,7 +417,6 @@ function View:resize(size)
419417

420418
if size then
421419
self.width = size
422-
self.height = size
423420
end
424421

425422
if not self:is_visible() then
@@ -770,6 +767,7 @@ function View:is_width_determined()
770767
return type(self.width) ~= "function"
771768
end
772769

770+
-- These are needed as they are populated only by the user, not configuration
773771
local DEFAULT_MIN_WIDTH = 30
774772
local DEFAULT_MAX_WIDTH = -1
775773
local DEFAULT_PADDING = 1

0 commit comments

Comments
 (0)