Drop Server::m_enable_rollback_recording it's only used in server constructor

This commit is contained in:
Loic Blot 2018-03-16 09:12:39 +01:00
parent 95ce5583a9
commit 478b785bc8
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987
2 changed files with 1 additions and 3 deletions

@ -262,8 +262,7 @@ Server::Server(
// Initialize mapgens
m_emerge->initMapgens(servermap->getMapgenParams());
m_enable_rollback_recording = g_settings->getBool("enable_rollback_recording");
if (m_enable_rollback_recording) {
if (g_settings->getBool("enable_rollback_recording")) {
// Create rollback manager
m_rollback = new RollbackManager(m_path_world, this);
}

@ -520,7 +520,6 @@ private:
// Rollback manager (behind m_env_mutex)
IRollbackManager *m_rollback = nullptr;
bool m_enable_rollback_recording = false; // Updated once in a while
// Emerge manager
EmergeManager *m_emerge = nullptr;