QTfrontend/gameuiconfig.cpp
changeset 320 1ee7f087195a
parent 301 29bf9c1a3ad3
child 321 1148eeb0557e
--- a/QTfrontend/gameuiconfig.cpp	Thu Jan 11 23:29:57 2007 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Fri Jan 12 15:23:16 2007 +0000
@@ -38,19 +38,6 @@
 	Form->ui.pageNet->editIP->setText(value("net/ip", "").toString());
 	Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool());
 	Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt());
-
-	QFile themesfile(datadir->absolutePath() + "/Themes/themes.cfg");
-	if (themesfile.open(QIODevice::ReadOnly)) {
-		QTextStream stream(&themesfile);
-		QString str;
-		while (!stream.atEnd())
-		{
-			Themes << stream.readLine();
-		}
-		themesfile.close();
-	} else {
-		QMessageBox::critical(FormWidgets, "Error", "Cannot access themes.cfg", "OK");
-	}
 }
 
 QStringList GameUIConfig::GetTeamsList()
@@ -102,8 +89,3 @@
 {
 	return 35 - Form->ui.pageOptions->fpsedit->value();
 }
-
-QString GameUIConfig::GetRandomTheme()
-{
-	return (Themes.size() > 0) ? Themes[rand() % Themes.size()] : QString("steel");
-}