mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[BROWSEUI] Remove useless variable and unreachable code (#4483)
Addendum to 0c47416
(r72003).
CORE-12804
Co-authored-by: Victor Martinez Calvo <vicmarcal@gmail.com>
This commit is contained in:
parent
e0b9d6d9cd
commit
beefb07d18
1 changed files with 2 additions and 4 deletions
|
@ -726,7 +726,6 @@ BOOL CExplorerBand::NavigateToPIDL(LPITEMIDLIST dest, HTREEITEM *item, BOOL bExp
|
|||
HTREEITEM current;
|
||||
HTREEITEM tmp;
|
||||
HTREEITEM parent;
|
||||
BOOL found;
|
||||
NodeInfo *nodeData;
|
||||
LPITEMIDLIST relativeChild;
|
||||
TVITEM tvItem;
|
||||
|
@ -734,10 +733,9 @@ BOOL CExplorerBand::NavigateToPIDL(LPITEMIDLIST dest, HTREEITEM *item, BOOL bExp
|
|||
if (!item)
|
||||
return FALSE;
|
||||
|
||||
found = FALSE;
|
||||
current = m_hRoot;
|
||||
parent = NULL;
|
||||
while(!found)
|
||||
while (TRUE)
|
||||
{
|
||||
nodeData = GetNodeInfo(current);
|
||||
if (!nodeData)
|
||||
|
@ -811,7 +809,7 @@ BOOL CExplorerBand::NavigateToPIDL(LPITEMIDLIST dest, HTREEITEM *item, BOOL bExp
|
|||
*item = NULL;
|
||||
return FALSE;
|
||||
}
|
||||
return FALSE;
|
||||
UNREACHABLE;
|
||||
}
|
||||
|
||||
BOOL CExplorerBand::NavigateToCurrentFolder()
|
||||
|
|
Loading…
Reference in a new issue