qmlfrontend/game_config.cpp
changeset 14278 645e4591361f
parent 14159 8354b390f1a2
child 14279 0ae9885e1535
--- a/qmlfrontend/game_config.cpp	Thu Nov 22 13:39:51 2018 +0100
+++ b/qmlfrontend/game_config.cpp	Thu Nov 22 13:40:58 2018 +0100
@@ -1,6 +1,6 @@
 #include "game_config.h"
 
-GameConfig::GameConfig() : m_isPreview(true) { setPreview(m_isPreview); }
+GameConfig::GameConfig() {}
 
 const char** GameConfig::argv() const {
   m_argv.resize(m_arguments.size());
@@ -53,25 +53,6 @@
   cfgAppend("eammstore");
 }
 
-bool GameConfig::isPreview() const { return m_isPreview; }
-
-void GameConfig::setPreview(bool isPreview) {
-  m_isPreview = isPreview;
-
-  m_arguments.clear();
-
-  if (m_isPreview) {
-    m_arguments << ""
-                << "--internal"
-                << "--landpreview";
-
-  } else {
-    m_arguments << ""
-                << "--internal"
-                << "--nomusic";
-  }
-}
-
 void GameConfig::cfgAppend(const QByteArray& cmd) {
   Q_ASSERT(cmd.size() < 256);