https://git.reactos.org/?p=reactos.git;a=commitdiff;h=beefb07d183d289397baa…
commit beefb07d183d289397baa1360e3fd44636db15bc
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Thu May 5 16:45:56 2022 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu May 5 16:45:56 2022 +0200
[BROWSEUI] Remove useless variable and unreachable code (#4483)
Addendum to 0c47416 (r72003).
CORE-12804
Co-authored-by: Victor Martinez Calvo <vicmarcal(a)gmail.com>
---
dll/win32/browseui/explorerband.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dll/win32/browseui/explorerband.cpp b/dll/win32/browseui/explorerband.cpp
index 535ba404f97..83b5d8c3396 100644
--- a/dll/win32/browseui/explorerband.cpp
+++ b/dll/win32/browseui/explorerband.cpp
@@ -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()