forked from qt-creator/qt-creator
Core: Remove SessionManager::isStartupSessionRestored() mechanism
Apparently not used anymore. Change-Id: I0ea8f70979450799c979ca5cd3314c834560b336 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -89,7 +89,6 @@ public:
|
||||
static QString sessionTitle(const FilePath &filePath);
|
||||
|
||||
QString m_sessionName = "default";
|
||||
bool m_isStartupSessionRestored = false;
|
||||
bool m_isAutoRestoreLastSession = false;
|
||||
bool m_virginSession = true;
|
||||
bool m_loadingSession = false;
|
||||
@@ -403,7 +402,6 @@ static QString determineSessionToRestoreAtStartup()
|
||||
void SessionManagerPrivate::restoreStartupSession()
|
||||
{
|
||||
NANOTRACE_SCOPE("Core", "SessionManagerPrivate::restoreStartupSession");
|
||||
m_isStartupSessionRestored = true;
|
||||
QString sessionToRestoreAtStartup = determineSessionToRestoreAtStartup();
|
||||
if (!sessionToRestoreAtStartup.isEmpty())
|
||||
ModeManager::activateMode(Core::Constants::MODE_EDIT);
|
||||
@@ -778,9 +776,4 @@ bool SessionManager::saveSession()
|
||||
return result;
|
||||
}
|
||||
|
||||
bool SessionManager::isStartupSessionRestored()
|
||||
{
|
||||
return d->m_isStartupSessionRestored;
|
||||
}
|
||||
|
||||
} // namespace Core
|
||||
|
@@ -80,9 +80,6 @@ signals:
|
||||
void sessionRenamed(const QString &oldName, const QString &newName);
|
||||
void sessionRemoved(const QString &name);
|
||||
|
||||
public: // internal
|
||||
static bool isStartupSessionRestored();
|
||||
|
||||
private:
|
||||
static void saveActiveMode(Utils::Id mode);
|
||||
};
|
||||
|
Reference in New Issue
Block a user