forked from qt-creator/qt-creator
ProjectTree: Remove effectively unused variable
lastFocusedProjectTreeWidget is always null when read, and so is the variable it's being assigned to. Therefore, it has no effect and should be removed. Change-Id: I05ec123dc0acb542fffc8fce92296f3b533d0fa5 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -153,13 +153,8 @@ void ProjectTree::nodeChanged(ProjectTreeWidget *widget)
|
||||
void ProjectTree::update()
|
||||
{
|
||||
ProjectTreeWidget *focus = m_focusForContextMenu;
|
||||
static QPointer<ProjectTreeWidget> lastFocusedProjectTreeWidget;
|
||||
if (!focus) {
|
||||
focus = currentWidget();
|
||||
lastFocusedProjectTreeWidget = focus;
|
||||
}
|
||||
if (!focus)
|
||||
focus = lastFocusedProjectTreeWidget;
|
||||
focus = currentWidget();
|
||||
|
||||
if (focus)
|
||||
updateFromProjectTreeWidget(focus);
|
||||
|
Reference in New Issue
Block a user