[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:
Serge Gautherie 2022-05-05 16:45:56 +02:00 committed by GitHub
parent e0b9d6d9cd
commit beefb07d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()