From f183a85cc268025763a2223865ad52dcfc90062d Mon Sep 17 00:00:00 2001 From: silverweed Date: Fri, 12 Jun 2026 13:19:54 +0200 Subject: [PATCH] [gui] remove unreachable code --- gui/gui/src/TGFileBrowser.cxx | 14 -------------- gui/guihtml/src/TGHtmlParse.cxx | 5 ----- 2 files changed, 19 deletions(-) diff --git a/gui/gui/src/TGFileBrowser.cxx b/gui/gui/src/TGFileBrowser.cxx index dc9f218903e2e..5729132166c7b 100644 --- a/gui/gui/src/TGFileBrowser.cxx +++ b/gui/gui/src/TGFileBrowser.cxx @@ -621,20 +621,6 @@ void TGFileBrowser::RecursiveRemove(TObject *obj) void TGFileBrowser::Refresh(Bool_t /*force*/) { TTimer::SingleShot(200, "TGFileBrowser", this, "Update()"); - return; // disable refresh for the time being... - // coverity[unreachable] - TCursorSwitcher cursorSwitcher(this, fListTree); - static UInt_t prev = 0; - UInt_t curr = gROOT->GetListOfBrowsables()->GetSize(); - if (!prev) prev = curr; - - if (prev != curr) { // refresh gROOT - TGListTreeItem *sav = fListLevel; - fListLevel = 0; - BrowseObj(gROOT); - fListLevel = sav; - prev = curr; - } } //////////////////////////////////////////////////////////////////////////////// diff --git a/gui/guihtml/src/TGHtmlParse.cxx b/gui/guihtml/src/TGHtmlParse.cxx index b58d033633673..f332fc16102fe 100644 --- a/gui/guihtml/src/TGHtmlParse.cxx +++ b/gui/guihtml/src/TGHtmlParse.cxx @@ -935,11 +935,6 @@ int TGHtml::Tokenize() #endif case Html_NOSCRIPT: break; - // coverity[unreachable] - if (!fHasScript) break; -#ifdef pIsInMeachnism - pIsInNoScript = 1; -#endif case Html_SCRIPT: #ifdef pIsInMeachnism pIsInScript = 1;