Skip to content

Commit 18d9702

Browse files
committed
[gui] remove unreachable code
1 parent 758c3de commit 18d9702

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

gui/gui/src/TGFileBrowser.cxx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -621,20 +621,6 @@ void TGFileBrowser::RecursiveRemove(TObject *obj)
621621
void TGFileBrowser::Refresh(Bool_t /*force*/)
622622
{
623623
TTimer::SingleShot(200, "TGFileBrowser", this, "Update()");
624-
return; // disable refresh for the time being...
625-
// coverity[unreachable]
626-
TCursorSwitcher cursorSwitcher(this, fListTree);
627-
static UInt_t prev = 0;
628-
UInt_t curr = gROOT->GetListOfBrowsables()->GetSize();
629-
if (!prev) prev = curr;
630-
631-
if (prev != curr) { // refresh gROOT
632-
TGListTreeItem *sav = fListLevel;
633-
fListLevel = 0;
634-
BrowseObj(gROOT);
635-
fListLevel = sav;
636-
prev = curr;
637-
}
638624
}
639625

640626
////////////////////////////////////////////////////////////////////////////////

gui/guihtml/src/TGHtmlParse.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -935,11 +935,6 @@ int TGHtml::Tokenize()
935935
#endif
936936
case Html_NOSCRIPT:
937937
break;
938-
// coverity[unreachable]
939-
if (!fHasScript) break;
940-
#ifdef pIsInMeachnism
941-
pIsInNoScript = 1;
942-
#endif
943938
case Html_SCRIPT:
944939
#ifdef pIsInMeachnism
945940
pIsInScript = 1;

0 commit comments

Comments
 (0)