mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 12:23:49 -05:00
remove some unneeded 'unlet' calls
This commit is contained in:
@@ -665,7 +665,6 @@ endfunction
|
|||||||
"
|
"
|
||||||
"Args:
|
"Args:
|
||||||
"path: a path object
|
"path: a path object
|
||||||
unlet s:oTreeDirNode.FindNode
|
|
||||||
function! s:oTreeDirNode.FindNode(path)
|
function! s:oTreeDirNode.FindNode(path)
|
||||||
if a:path.Equals(self.path)
|
if a:path.Equals(self.path)
|
||||||
return self
|
return self
|
||||||
@@ -870,7 +869,6 @@ endfunction
|
|||||||
"
|
"
|
||||||
"Args:
|
"Args:
|
||||||
"path: a path object representing the full filesystem path to the file/dir that the node represents
|
"path: a path object representing the full filesystem path to the file/dir that the node represents
|
||||||
unlet s:oTreeDirNode.New
|
|
||||||
function! s:oTreeDirNode.New(path)
|
function! s:oTreeDirNode.New(path)
|
||||||
if a:path.isDirectory != 1
|
if a:path.isDirectory != 1
|
||||||
throw "NERDTree.TreeDirNode.InvalidArguments exception. A TreeDirNode object must be instantiated with a directory Path object."
|
throw "NERDTree.TreeDirNode.InvalidArguments exception. A TreeDirNode object must be instantiated with a directory Path object."
|
||||||
@@ -934,7 +932,6 @@ function! s:oTreeDirNode.OpenRecursively2(forceOpen)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: oTreeDirNode.Refresh {{{3
|
"FUNCTION: oTreeDirNode.Refresh {{{3
|
||||||
unlet s:oTreeDirNode.Refresh
|
|
||||||
function! s:oTreeDirNode.Refresh()
|
function! s:oTreeDirNode.Refresh()
|
||||||
call self.path.Refresh()
|
call self.path.Refresh()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user